public class OCLinEcoreCodeGenerator extends JavaCodeGenerator
Modifier and Type | Class and Description |
---|---|
static class |
OCLinEcoreCodeGenerator.EcoreBoxingAnalyzer |
protected static class |
OCLinEcoreCodeGenerator.StatusAnalyzer
StatusAnalyzer traverses an OCLExpression tree identifying those nodes that create status and can be rewritten.
|
Modifier and Type | Field and Description |
---|---|
protected PivotHelper |
asHelper |
protected PrimitiveType |
booleanType |
protected CodeGenAnalyzer |
cgAnalyzer |
protected org.eclipse.emf.codegen.ecore.genmodel.GenPackage |
genPackage |
protected OCLinEcoreGlobalContext |
globalContext |
protected PrimitiveType |
integerType |
protected AnyType |
oclAnyType |
protected StandardLibraryInternal |
standardLibrary |
javaPrimitiveClasses, javaPrimitiveNames, knownClasses
environmentFactory, genModelHelper, metamodelManager, nameManager, ORG_ECLIPSE_JDT_ANNOTATION_NON_NULL, ORG_ECLIPSE_JDT_ANNOTATION_NULLABLE
Modifier | Constructor and Description |
---|---|
protected |
OCLinEcoreCodeGenerator(EnvironmentFactoryInternal environmentFactory,
org.eclipse.emf.codegen.ecore.genmodel.GenPackage genPackage) |
Modifier and Type | Method and Description |
---|---|
BoxingAnalyzer |
createBoxingAnalyzer() |
protected void |
generate(java.util.Map<java.lang.String,java.lang.String> uri2body,
java.util.Map<org.eclipse.emf.codegen.ecore.genmodel.GenPackage,java.lang.String> constantsTexts) |
static void |
generatePackage(org.eclipse.emf.codegen.ecore.genmodel.GenPackage genPackage,
java.util.Map<java.lang.String,java.lang.String> uri2body,
java.util.Map<org.eclipse.emf.codegen.ecore.genmodel.GenPackage,java.lang.String> constantsTexts) |
CodeGenAnalyzer |
getAnalyzer() |
OCLinEcoreGlobalContext |
getGlobalContext() |
protected ExpressionInOCL |
rewriteQuery(ExpressionInOCL oldQuery,
java.lang.String qualifiedConstraintName) |
createCG2JavaPreVisitor, createCommonSubexpressionEliminator, createConstrainedOperations, createDependencyVisitor, createFieldingAnalyzer, createGenModelHelper, createId2BoxedDescriptorVisitor, createId2EClassVisitor, createNameManager, createReferencesVisitor, getBoxedDescriptor, getCGResourceFactory, getConstantsClass, getEcoreDescriptor, getGlobalPlace, getId2BoxedDescriptorVisitor, getId2EClassVisitor, getIsNonNull, getIterationHelper, getLeastDerivedMethod, getTypeDescriptor, getUnboxedDescriptor, initPrimitive, isNonNull, isNonNull, isPrimitive, maybePrimitive, optimize, prepareGlobals
addConstrainedOperation, addProblem, createAnalysisVisitor, createOptions, getConstrainedOperations, getDefaultIndent, getEnvironmentFactory, getGenModelHelper, getNameManager, getOptions, getProblems, isFinal
@NonNull protected final OCLinEcoreGlobalContext globalContext
@NonNull protected final StandardLibraryInternal standardLibrary
@NonNull protected final CodeGenAnalyzer cgAnalyzer
@NonNull protected final org.eclipse.emf.codegen.ecore.genmodel.GenPackage genPackage
@NonNull protected final PivotHelper asHelper
@NonNull protected final AnyType oclAnyType
@NonNull protected final PrimitiveType booleanType
@NonNull protected final PrimitiveType integerType
protected OCLinEcoreCodeGenerator(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull org.eclipse.emf.codegen.ecore.genmodel.GenPackage genPackage)
public static void generatePackage(@NonNull org.eclipse.emf.codegen.ecore.genmodel.GenPackage genPackage, @NonNull java.util.Map<java.lang.String,java.lang.String> uri2body, @NonNull java.util.Map<org.eclipse.emf.codegen.ecore.genmodel.GenPackage,java.lang.String> constantsTexts)
@NonNull public BoxingAnalyzer createBoxingAnalyzer()
createBoxingAnalyzer
in interface CodeGenerator
createBoxingAnalyzer
in class JavaCodeGenerator
protected void generate(@NonNull java.util.Map<java.lang.String,java.lang.String> uri2body, @NonNull java.util.Map<org.eclipse.emf.codegen.ecore.genmodel.GenPackage,java.lang.String> constantsTexts)
@NonNull public CodeGenAnalyzer getAnalyzer()
@NonNull public OCLinEcoreGlobalContext getGlobalContext()
getGlobalContext
in interface CodeGenerator
getGlobalContext
in class JavaCodeGenerator
@NonNull protected ExpressionInOCL rewriteQuery(@NonNull ExpressionInOCL oldQuery, @NonNull java.lang.String qualifiedConstraintName)