public interface CodeGenerator
Modifier and Type | Method and Description |
---|---|
boolean |
addConstrainedOperation(Operation constrainedOperation) |
void |
addProblem(java.lang.Exception e) |
AnalysisVisitor |
createAnalysisVisitor() |
BoxingAnalyzer |
createBoxingAnalyzer() |
CommonSubexpressionEliminator |
createCommonSubexpressionEliminator() |
DependencyVisitor |
createDependencyVisitor() |
FieldingAnalyzer |
createFieldingAnalyzer() |
ReferencesVisitor |
createReferencesVisitor() |
CodeGenAnalyzer |
getAnalyzer() |
BoxedDescriptor |
getBoxedDescriptor(ElementId elementId) |
java.lang.String |
getConstantsClass() |
java.lang.String |
getDefaultIndent() |
EcoreDescriptor |
getEcoreDescriptor(ElementId elementId,
java.lang.Class<?> instanceClass) |
EnvironmentFactoryInternal |
getEnvironmentFactory() |
GenModelHelper |
getGenModelHelper() |
GlobalContext |
getGlobalContext() |
GlobalPlace |
getGlobalPlace() |
IterationHelper |
getIterationHelper(Iteration iteration) |
NameManager |
getNameManager() |
CodeGenOptions |
getOptions() |
java.util.List<java.lang.Exception> |
getProblems() |
TypeDescriptor |
getTypeDescriptor(CGValuedElement cgElement) |
UnboxedDescriptor |
getUnboxedDescriptor(ElementId elementId) |
Operation |
isFinal(Operation anOperation,
Class staticType) |
java.lang.Boolean |
isNonNull(OperationCallExp asOperationCallExp)
Return true if asOperationCallExp may return a nonNull value,
false if asOperationCallExp may return a null value,
null if no determination can be made.
|
java.lang.Boolean |
isNonNull(Property asProperty)
Return true if asProperty may provide a nonNull value,
false if asOperationCallExp may provide a null value,
null if no determination can be made.
|
boolean |
isPrimitive(CGValuedElement cgValue)
Return true is this is a built-in primitive type such as boolean or int.
|
boolean |
maybePrimitive(CGValuedElement cgValue)
Return true if cgValue could be represented by a primitive value.
|
boolean addConstrainedOperation(@NonNull Operation constrainedOperation)
void addProblem(@NonNull java.lang.Exception e)
@NonNull AnalysisVisitor createAnalysisVisitor()
@NonNull BoxingAnalyzer createBoxingAnalyzer()
@NonNull CommonSubexpressionEliminator createCommonSubexpressionEliminator()
@NonNull DependencyVisitor createDependencyVisitor()
@NonNull FieldingAnalyzer createFieldingAnalyzer()
@NonNull ReferencesVisitor createReferencesVisitor()
@NonNull CodeGenAnalyzer getAnalyzer()
@NonNull BoxedDescriptor getBoxedDescriptor(@NonNull ElementId elementId)
@Nullable java.lang.String getConstantsClass()
@NonNull java.lang.String getDefaultIndent()
@NonNull EcoreDescriptor getEcoreDescriptor(@NonNull ElementId elementId, @Nullable java.lang.Class<?> instanceClass)
@NonNull EnvironmentFactoryInternal getEnvironmentFactory()
@NonNull GenModelHelper getGenModelHelper()
@NonNull GlobalContext getGlobalContext()
@NonNull GlobalPlace getGlobalPlace()
@Nullable IterationHelper getIterationHelper(@NonNull Iteration iteration)
@NonNull NameManager getNameManager()
@NonNull CodeGenOptions getOptions()
@Nullable java.util.List<java.lang.Exception> getProblems()
@NonNull TypeDescriptor getTypeDescriptor(@NonNull CGValuedElement cgElement)
@NonNull UnboxedDescriptor getUnboxedDescriptor(@NonNull ElementId elementId)
@Nullable java.lang.Boolean isNonNull(@NonNull OperationCallExp asOperationCallExp)
@Nullable java.lang.Boolean isNonNull(@NonNull Property asProperty)
boolean isPrimitive(@NonNull CGValuedElement cgValue)
boolean maybePrimitive(@NonNull CGValuedElement cgValue)