public abstract class JavaCodeGenerator extends AbstractCodeGenerator
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<java.lang.Class<?>,java.lang.Class<?>> |
javaPrimitiveClasses |
static java.util.Map<java.lang.String,java.lang.Class<?>> |
javaPrimitiveNames |
static java.lang.Class<?>[] |
knownClasses
The known classes that templates may use in unqualified form.
|
genModelHelper, metaModelManager, nameManager, ORG_ECLIPSE_JDT_ANNOTATION_NON_NULL, ORG_ECLIPSE_JDT_ANNOTATION_NULLABLE| Constructor and Description |
|---|
JavaCodeGenerator(MetaModelManager metaModelManager) |
addProblem, createAnalysisVisitor, createOptions, getDefaultIndent, getGenModelHelper, getMetaModelManager, getNameManager, getOptions, isFinalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnalyzerpublic static java.util.Map<java.lang.Class<?>,java.lang.Class<?>> javaPrimitiveClasses
public static java.util.Map<java.lang.String,java.lang.Class<?>> javaPrimitiveNames
@NonNull public static final java.lang.Class<?>[] knownClasses
public JavaCodeGenerator(@NonNull
MetaModelManager metaModelManager)
public static void initPrimitive(java.lang.Class<?> class1,
java.lang.Class<?> class2)
@NonNull public BoxingAnalyzer createBoxingAnalyzer()
@NonNull public CG2JavaPreVisitor createCG2JavaPreVisitor()
public DependencyVisitor createDependencyVisitor()
public DependencyVisitor createDependencyVisitor(@NonNull JavaLocalContext localContext)
@NonNull public FieldingAnalyzer createFieldingAnalyzer()
@NonNull protected GenModelHelper createGenModelHelper()
createGenModelHelper in class AbstractCodeGenerator@NonNull protected abstract JavaGlobalContext createGlobalContext()
@NonNull protected Id2BoxedJavaClassVisitor createId2BoxedJavaClassVisitor()
@NonNull protected Id2EClassVisitor createId2EClassVisitor()
@NonNull protected Id2UnboxedJavaClassVisitor createId2UnboxedJavaClassVisitor()
@NonNull protected NameManager createNameManager()
createNameManager in class AbstractCodeGenerator@Nullable public java.lang.String getConstantsClass()
protected org.eclipse.emf.ecore.EClass getEClass(@NonNull
Type type)
@NonNull public JavaGlobalContext getGlobalContext()
@NonNull public Id2BoxedJavaClassVisitor getId2BoxedClassVisitor()
@NonNull public Id2EClassVisitor getId2EClassVisitor()
@NonNull public Id2UnboxedJavaClassVisitor getId2UnboxedClassVisitor()
@Nullable public Iteration2Java getIterationHelper(@NonNull Iteration pivotIteration)
@NonNull public TypeDescriptor getTypeDescriptor(@NonNull CGValuedElement cgElement)
@NonNull public TypeDescriptor getTypeDescriptor(@NonNull ElementId elementId, boolean isBoxed)