public class CG2JavaPreVisitor extends AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
Modifier and Type | Field and Description |
---|---|
protected CodeGenAnalyzer |
analyzer |
protected JavaCodeGenerator |
codeGenerator |
protected GenModelHelper |
genModelHelper |
protected JavaLocalContext |
localContext |
context
Constructor and Description |
---|
CG2JavaPreVisitor(JavaGlobalContext javaContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
doTypedElement(CGTypedElement cgTypedElement) |
protected void |
doValuedElement(CGValuedElement cgValuedElement) |
JavaCodeGenerator |
getCodeGenerator() |
protected CGValuedElement |
getIdResolverVariable() |
protected CGText |
getStandardLibraryVariable() |
java.lang.Object |
visitCGBoxExp(CGBoxExp cgBoxExp) |
java.lang.Object |
visitCGCollectionPart(CGCollectionPart cgCollectionPart) |
java.lang.Object |
visitCGConstantExp(CGConstantExp cgConstantExp) |
java.lang.Object |
visitCGConstraint(CGConstraint cgConstraint) |
java.lang.Object |
visitCGConstructorPart(CGConstructorPart cgConstructorPart) |
java.lang.Object |
visitCGEcoreClassConstructorExp(CGEcoreClassConstructorExp cgConstructorExp) |
java.lang.Object |
visitCGElement(CGElement cgElement) |
java.lang.Object |
visitCGExecutorCompositionProperty(CGExecutorCompositionProperty cgExecutorProperty) |
java.lang.Object |
visitCGExecutorNavigationProperty(CGExecutorNavigationProperty cgExecutorProperty) |
java.lang.Object |
visitCGExecutorOperation(CGExecutorOperation cgExecutorOperation) |
java.lang.Object |
visitCGExecutorOperationCallExp(CGExecutorOperationCallExp cgExecutorOperationCallExp) |
java.lang.Object |
visitCGExecutorOppositeProperty(CGExecutorOppositeProperty cgExecutorProperty) |
java.lang.Object |
visitCGExecutorProperty(CGExecutorProperty cgExecutorProperty) |
java.lang.Object |
visitCGExecutorPropertyCallExp(CGExecutorPropertyCallExp cgExecutorPropertyCallExp) |
java.lang.Object |
visitCGExecutorType(CGExecutorType cgExecutorType) |
java.lang.Object |
visitCGIterationCallExp(CGIterationCallExp cgIterationCallExp) |
java.lang.Object |
visitCGLetExp(CGLetExp cgLetExp) |
java.lang.Object |
visitCGLibraryIterateCallExp(CGLibraryIterateCallExp cgLibraryIterateCallExp) |
java.lang.Object |
visitCGLibraryIterationCallExp(CGLibraryIterationCallExp cgLibraryIterationCallExp) |
java.lang.Object |
visitCGLibraryOperationCallExp(CGLibraryOperationCallExp cgOperationCallExp) |
java.lang.Object |
visitCGLibraryPropertyCallExp(CGLibraryPropertyCallExp cgPropertyCallExp) |
java.lang.Object |
visitCGOperation(CGOperation cgOperation) |
java.lang.Object |
visitCGProperty(CGProperty cgProperty) |
java.lang.Object |
visitCGTypedElement(CGTypedElement cgTypedElement) |
java.lang.Object |
visitCGTypeExp(CGTypeExp cgTypeExp) |
java.lang.Object |
visitCGValuedElement(CGValuedElement cgValuedElement) |
java.lang.Object |
visitCGVariableExp(CGVariableExp cgVariableExp) |
java.lang.Object |
visiting(CGElement visitable)
Return the result of visiting a visitable for which no more specific pivot type method
is available.
|
visitCGBoolean, visitCGBuiltInIterationCallExp, visitCGCallExp, visitCGCastParameter, visitCGCatchExp, visitCGClass, visitCGCollectionExp, visitCGConstant, visitCGConstructorExp, visitCGEcoreDataTypeConstructorExp, visitCGEcoreOperationCallExp, visitCGEcorePropertyCallExp, visitCGElementId, visitCGEqualsExp, visitCGExecutorConstructorPart, visitCGFinalVariable, visitCGGuardExp, visitCGIfExp, visitCGInfinity, visitCGInteger, visitCGInvalid, visitCGIsInvalidExp, visitCGIsUndefinedExp, visitCGIterator, visitCGLocalVariable, visitCGModel, visitCGNamedElement, visitCGNull, visitCGOperationCallExp, visitCGPackage, visitCGParameter, visitCGPropertyCallExp, visitCGReal, visitCGSettableVariable, visitCGString, visitCGText, visitCGTextParameter, visitCGThrowExp, visitCGTupleExp, visitCGTuplePart, visitCGTuplePartCallExp, visitCGTypeId, visitCGUnboxExp, visitCGVariable
getAdapter, safeVisit, visit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdapter
@NonNull protected final JavaCodeGenerator codeGenerator
@NonNull protected final GenModelHelper genModelHelper
@NonNull protected final CodeGenAnalyzer analyzer
protected JavaLocalContext localContext
public CG2JavaPreVisitor(@NonNull JavaGlobalContext javaContext)
protected void doTypedElement(@NonNull CGTypedElement cgTypedElement)
protected void doValuedElement(@NonNull CGValuedElement cgValuedElement)
@NonNull public JavaCodeGenerator getCodeGenerator()
@NonNull protected CGValuedElement getIdResolverVariable()
@NonNull protected CGText getStandardLibraryVariable()
@Nullable public java.lang.Object visiting(@NonNull CGElement visitable)
CGModelVisitor
@Nullable public java.lang.Object visitCGBoxExp(@NonNull CGBoxExp cgBoxExp)
visitCGBoxExp
in interface CGModelVisitor<java.lang.Object>
visitCGBoxExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGCollectionPart(@NonNull CGCollectionPart cgCollectionPart)
visitCGCollectionPart
in interface CGModelVisitor<java.lang.Object>
visitCGCollectionPart
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGConstantExp(@NonNull CGConstantExp cgConstantExp)
visitCGConstantExp
in interface CGModelVisitor<java.lang.Object>
visitCGConstantExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGConstraint(@NonNull CGConstraint cgConstraint)
visitCGConstraint
in interface CGModelVisitor<java.lang.Object>
visitCGConstraint
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGConstructorPart(@NonNull CGConstructorPart cgConstructorPart)
visitCGConstructorPart
in interface CGModelVisitor<java.lang.Object>
visitCGConstructorPart
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGEcoreClassConstructorExp(@NonNull CGEcoreClassConstructorExp cgConstructorExp)
visitCGEcoreClassConstructorExp
in interface CGModelVisitor<java.lang.Object>
visitCGEcoreClassConstructorExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGElement(@NonNull CGElement cgElement)
visitCGElement
in interface CGModelVisitor<java.lang.Object>
visitCGElement
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGExecutorCompositionProperty(@NonNull CGExecutorCompositionProperty cgExecutorProperty)
visitCGExecutorCompositionProperty
in interface CGModelVisitor<java.lang.Object>
visitCGExecutorCompositionProperty
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGExecutorNavigationProperty(@NonNull CGExecutorNavigationProperty cgExecutorProperty)
visitCGExecutorNavigationProperty
in interface CGModelVisitor<java.lang.Object>
visitCGExecutorNavigationProperty
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGExecutorOperation(@NonNull CGExecutorOperation cgExecutorOperation)
visitCGExecutorOperation
in interface CGModelVisitor<java.lang.Object>
visitCGExecutorOperation
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGExecutorOperationCallExp(@NonNull CGExecutorOperationCallExp cgExecutorOperationCallExp)
visitCGExecutorOperationCallExp
in interface CGModelVisitor<java.lang.Object>
visitCGExecutorOperationCallExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGExecutorOppositeProperty(@NonNull CGExecutorOppositeProperty cgExecutorProperty)
visitCGExecutorOppositeProperty
in interface CGModelVisitor<java.lang.Object>
visitCGExecutorOppositeProperty
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGExecutorProperty(@NonNull CGExecutorProperty cgExecutorProperty)
visitCGExecutorProperty
in interface CGModelVisitor<java.lang.Object>
visitCGExecutorProperty
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGExecutorPropertyCallExp(@NonNull CGExecutorPropertyCallExp cgExecutorPropertyCallExp)
visitCGExecutorPropertyCallExp
in interface CGModelVisitor<java.lang.Object>
visitCGExecutorPropertyCallExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGExecutorType(@NonNull CGExecutorType cgExecutorType)
visitCGExecutorType
in interface CGModelVisitor<java.lang.Object>
visitCGExecutorType
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGIterationCallExp(@NonNull CGIterationCallExp cgIterationCallExp)
visitCGIterationCallExp
in interface CGModelVisitor<java.lang.Object>
visitCGIterationCallExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGLetExp(@NonNull CGLetExp cgLetExp)
visitCGLetExp
in interface CGModelVisitor<java.lang.Object>
visitCGLetExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGLibraryIterateCallExp(@NonNull CGLibraryIterateCallExp cgLibraryIterateCallExp)
visitCGLibraryIterateCallExp
in interface CGModelVisitor<java.lang.Object>
visitCGLibraryIterateCallExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGLibraryIterationCallExp(@NonNull CGLibraryIterationCallExp cgLibraryIterationCallExp)
visitCGLibraryIterationCallExp
in interface CGModelVisitor<java.lang.Object>
visitCGLibraryIterationCallExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGLibraryOperationCallExp(@NonNull CGLibraryOperationCallExp cgOperationCallExp)
visitCGLibraryOperationCallExp
in interface CGModelVisitor<java.lang.Object>
visitCGLibraryOperationCallExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGLibraryPropertyCallExp(@NonNull CGLibraryPropertyCallExp cgPropertyCallExp)
visitCGLibraryPropertyCallExp
in interface CGModelVisitor<java.lang.Object>
visitCGLibraryPropertyCallExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGOperation(@NonNull CGOperation cgOperation)
visitCGOperation
in interface CGModelVisitor<java.lang.Object>
visitCGOperation
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGProperty(@NonNull CGProperty cgProperty)
visitCGProperty
in interface CGModelVisitor<java.lang.Object>
visitCGProperty
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGTypeExp(@NonNull CGTypeExp cgTypeExp)
visitCGTypeExp
in interface CGModelVisitor<java.lang.Object>
visitCGTypeExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGTypedElement(@NonNull CGTypedElement cgTypedElement)
visitCGTypedElement
in interface CGModelVisitor<java.lang.Object>
visitCGTypedElement
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGValuedElement(@NonNull CGValuedElement cgValuedElement)
visitCGValuedElement
in interface CGModelVisitor<java.lang.Object>
visitCGValuedElement
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>
@Nullable public java.lang.Object visitCGVariableExp(@NonNull CGVariableExp cgVariableExp)
visitCGVariableExp
in interface CGModelVisitor<java.lang.Object>
visitCGVariableExp
in class AbstractExtendingCGModelVisitor<java.lang.Object,JavaGlobalContext>