@Override public String toString() { return "Generation context for: " + getTypeIdentifier(); //$NON-NLS-1$ }
/** Replies the SARL-specific generation context. * * @param type the generated type. * @return the SARL-specific generation context. */ protected final synchronized GenerationContext getContext(JvmIdentifiableElement type) { for (final GenerationContext candidate : this.bufferedContexes) { if (Objects.equal(candidate.getTypeIdentifier(), type.getIdentifier())) { return candidate; } } throw new GenerationContextNotFoundInternalError(type); }
while (selectedContext == null && iterator.hasNext()) { final GenerationContext candidate = iterator.next(); if (Objects.equal(candidate.getTypeIdentifier(), context.getTypeIdentifier())) { runPostElements = candidate.getParentContext() == null; selectedContext = candidate;