public abstract class JavaCodeGenerator extends AbstractCodeGenerator
Modifier and Type | Field and Description |
---|---|
static Map<Class<?>,Class<?>> |
javaPrimitiveClasses |
static Map<String,Class<?>> |
javaPrimitiveNames |
static Class<?>[] |
knownClasses
Deprecated.
no longer used; the import generator is smart enough to anlyze what is actually used
|
ORG_ECLIPSE_JDT_ANNOTATION_NON_NULL, ORG_ECLIPSE_JDT_ANNOTATION_NULLABLE
Constructor and Description |
---|
JavaCodeGenerator(EnvironmentFactoryInternal environmentFactory) |
addConstrainedOperation, addProblem, createAnalysisVisitor, getDefaultIndent, getEnvironmentFactory, getGenModelHelper, getNameManager, getOptions, getProblems, isFinal
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnalyzer
@Deprecated public static final Class<?>[] knownClasses
public JavaCodeGenerator(EnvironmentFactoryInternal environmentFactory)
public BoxingAnalyzer createBoxingAnalyzer()
public CommonSubexpressionEliminator createCommonSubexpressionEliminator()
public CG2JavaPreVisitor createCG2JavaPreVisitor()
public DependencyVisitor createDependencyVisitor()
public FieldingAnalyzer createFieldingAnalyzer()
public ReferencesVisitor createReferencesVisitor()
public BoxedDescriptor getBoxedDescriptor(ElementId elementId)
public CGModelResourceFactory getCGResourceFactory()
public String getConstantsClass()
public EcoreDescriptor getEcoreDescriptor(ElementId elementId, Class<?> instanceClass)
public abstract JavaGlobalContext<? extends JavaCodeGenerator> getGlobalContext()
public GlobalPlace getGlobalPlace()
public Id2BoxedDescriptorVisitor getId2BoxedDescriptorVisitor()
public Id2EClassVisitor getId2EClassVisitor()
public Boolean getIsNonNull(Method method)
public Iteration2Java getIterationHelper(Iteration asIteration)
public Method getLeastDerivedMethod(Class<?> requiredClass, String getAccessor)
public TypeDescriptor getTypeDescriptor(CGValuedElement cgElement)
public UnboxedDescriptor getUnboxedDescriptor(ElementId elementId)
public Boolean isNonNull(OperationCallExp asOperationCallExp)
CodeGenerator
public Boolean isNonNull(Property asProperty)
CodeGenerator
public boolean isPrimitive(CGValuedElement cgValue)
public boolean maybePrimitive(CGValuedElement cgValue)
CodeGenerator
public List<CGValuedElement> prepareGlobals()
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.