public abstract class AbstractCodeGenerator extends java.lang.Object implements CodeGenerator
Modifier and Type | Field and Description |
---|---|
protected EnvironmentFactoryInternal |
environmentFactory |
protected GenModelHelper |
genModelHelper |
protected PivotMetamodelManager |
metamodelManager |
protected NameManager |
nameManager |
static java.lang.String |
ORG_ECLIPSE_JDT_ANNOTATION_NON_NULL |
static java.lang.String |
ORG_ECLIPSE_JDT_ANNOTATION_NULLABLE |
Modifier | Constructor and Description |
---|---|
protected |
AbstractCodeGenerator(EnvironmentFactoryInternal environmentFactory) |
protected |
AbstractCodeGenerator(EnvironmentFactoryInternal environmentFactory,
NameManager nameManager,
GenModelHelper genModelHelper) |
Modifier and Type | Method and Description |
---|---|
void |
addProblem(java.lang.Exception problem) |
AnalysisVisitor |
createAnalysisVisitor() |
protected abstract GenModelHelper |
createGenModelHelper() |
protected abstract NameManager |
createNameManager() |
protected CodeGenOptions |
createOptions() |
java.lang.String |
getDefaultIndent() |
EnvironmentFactoryInternal |
getEnvironmentFactory() |
GenModelHelper |
getGenModelHelper() |
NameManager |
getNameManager() |
CodeGenOptions |
getOptions() |
Operation |
isFinal(Operation anOperation,
Class staticType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createBoxingAnalyzer, createCommonSubexpressionEliminator, createDependencyVisitor, createFieldingAnalyzer, createReferencesVisitor, getAnalyzer, getBoxedDescriptor, getConstantsClass, getEcoreDescriptor, getGlobalContext, getGlobalPlace, getIterationHelper, getTypeDescriptor, getUnboxedDescriptor, isNonNull, isNonNull, maybePrimitive
@NonNull public static final java.lang.String ORG_ECLIPSE_JDT_ANNOTATION_NON_NULL
@NonNull public static final java.lang.String ORG_ECLIPSE_JDT_ANNOTATION_NULLABLE
@NonNull protected final EnvironmentFactoryInternal environmentFactory
@NonNull protected final PivotMetamodelManager metamodelManager
@NonNull protected final NameManager nameManager
@NonNull protected final GenModelHelper genModelHelper
protected AbstractCodeGenerator(@NonNull EnvironmentFactoryInternal environmentFactory)
protected AbstractCodeGenerator(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull NameManager nameManager, @NonNull GenModelHelper genModelHelper)
@NonNull public EnvironmentFactoryInternal getEnvironmentFactory()
getEnvironmentFactory
in interface CodeGenerator
public void addProblem(@NonNull java.lang.Exception problem)
addProblem
in interface CodeGenerator
@NonNull public AnalysisVisitor createAnalysisVisitor()
createAnalysisVisitor
in interface CodeGenerator
@NonNull protected abstract GenModelHelper createGenModelHelper()
@NonNull protected abstract NameManager createNameManager()
@NonNull protected CodeGenOptions createOptions()
@NonNull public java.lang.String getDefaultIndent()
getDefaultIndent
in interface CodeGenerator
@NonNull public GenModelHelper getGenModelHelper()
getGenModelHelper
in interface CodeGenerator
@NonNull public NameManager getNameManager()
getNameManager
in interface CodeGenerator
@NonNull public CodeGenOptions getOptions()
getOptions
in interface CodeGenerator
@Nullable public Operation isFinal(@NonNull Operation anOperation, Class staticType)
isFinal
in interface CodeGenerator