org.eclipse.ocl.examples.codegen.generator
Interface CodeGenerator

All Known Implementing Classes:
AbstractCodeGenerator, AutoCodeGenerator, JavaCodeGenerator, JUnitCodeGenerator, OCLinEcoreCodeGenerator

public interface CodeGenerator


Method Summary
 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()
           
 GenModelHelper getGenModelHelper()
           
 GlobalContext getGlobalContext()
           
 GlobalPlace getGlobalPlace()
           
 IterationHelper getIterationHelper(Iteration iteration)
           
 MetaModelManager getMetaModelManager()
           
 NameManager getNameManager()
           
 CodeGenOptions getOptions()
           
 TypeDescriptor getTypeDescriptor(CGValuedElement cgElement)
           
 TypeDescriptor getTypeDescriptor(ElementId elementId, boolean isBoxed)
          Deprecated. 
 TypeDescriptor getTypeDescriptor(ElementId elementId, boolean isBoxed, boolean maybePrimitive)
          Deprecated. 
 UnboxedDescriptor getUnboxedDescriptor(ElementId elementId)
           
 DomainOperation isFinal(Operation anOperation, Type 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 maybePrimitive(CGValuedElement cgValue)
          Return true if cgValue could be represented by a primitive value.
 

Method Detail

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.