org.eclipse.ocl.examples.codegen.generator
Interface CodeGenerator
- All Known Implementing Classes:
- AbstractCodeGenerator, AutoCodeGenerator, JavaCodeGenerator, JUnitCodeGenerator, OCLinEcoreCodeGenerator
public interface CodeGenerator
addProblem
void addProblem(@NonNull
java.lang.Exception e)
createAnalysisVisitor
@NonNull
AnalysisVisitor createAnalysisVisitor()
createBoxingAnalyzer
@NonNull
BoxingAnalyzer createBoxingAnalyzer()
createCommonSubexpressionEliminator
@NonNull
CommonSubexpressionEliminator createCommonSubexpressionEliminator()
createDependencyVisitor
@NonNull
DependencyVisitor createDependencyVisitor()
createFieldingAnalyzer
@NonNull
FieldingAnalyzer createFieldingAnalyzer()
getAnalyzer
@NonNull
CodeGenAnalyzer getAnalyzer()
getBoxedDescriptor
@NonNull
BoxedDescriptor getBoxedDescriptor(@NonNull
ElementId elementId)
getConstantsClass
@Nullable
java.lang.String getConstantsClass()
getDefaultIndent
@NonNull
java.lang.String getDefaultIndent()
getGenModelHelper
@NonNull
GenModelHelper getGenModelHelper()
getGlobalContext
@NonNull
GlobalContext getGlobalContext()
getGlobalPlace
@NonNull
GlobalPlace getGlobalPlace()
getIterationHelper
@Nullable
IterationHelper getIterationHelper(@NonNull
Iteration iteration)
getMetaModelManager
@NonNull
MetaModelManager getMetaModelManager()
getNameManager
@NonNull
NameManager getNameManager()
getOptions
@NonNull
CodeGenOptions getOptions()
createReferencesVisitor
@NonNull
ReferencesVisitor createReferencesVisitor()
getTypeDescriptor
@NonNull
TypeDescriptor getTypeDescriptor(@NonNull
CGValuedElement cgElement)
getTypeDescriptor
@Deprecated
@NonNull
TypeDescriptor getTypeDescriptor(@NonNull
ElementId elementId,
boolean isBoxed)
- Deprecated.
getTypeDescriptor
@Deprecated
@NonNull
TypeDescriptor getTypeDescriptor(@NonNull
ElementId elementId,
boolean isBoxed,
boolean maybePrimitive)
- Deprecated.
getUnboxedDescriptor
@NonNull
UnboxedDescriptor getUnboxedDescriptor(@NonNull
ElementId elementId)
isFinal
@Nullable
DomainOperation isFinal(@NonNull
Operation anOperation,
@NonNull
Type staticType)
isNonNull
@Nullable
java.lang.Boolean isNonNull(@NonNull
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.
isNonNull
@Nullable
java.lang.Boolean isNonNull(@NonNull
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.
maybePrimitive
boolean maybePrimitive(@NonNull
CGValuedElement cgValue)
- Return true if cgValue could be represented by a primitive value. i.e. if it cannot convey a null or invalid value.