Package org.eclipse.xtext.xbase.compiler
Class JvmModelGenerator
- java.lang.Object
-
- org.eclipse.xtext.xbase.compiler.JvmModelGenerator
-
- All Implemented Interfaces:
org.eclipse.xtext.generator.IGenerator
public class JvmModelGenerator extends java.lang.Object implements org.eclipse.xtext.generator.IGenerator
A generator implementation that processes the derivedJVM model
and produces the respective java code.
-
-
Field Summary
Fields Modifier and Type Field Description protected ErrorSafeExtensions
_errorSafeExtensions
protected ILogicalContainerProvider
_iLogicalContainerProvider
protected JvmTypeExtensions
_jvmTypeExtensions
protected LoopExtensions
_loopExtensions
protected TreeAppendableUtil
_treeAppendableUtil
protected org.eclipse.xtext.common.types.util.TypeReferences
_typeReferences
-
Constructor Summary
Constructors Constructor Description JvmModelGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ITreeAppendable
_generateBody(org.eclipse.xtext.common.types.JvmAnnotationType it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateBody(org.eclipse.xtext.common.types.JvmEnumerationType it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateBody(org.eclipse.xtext.common.types.JvmGenericType it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateMember(org.eclipse.xtext.common.types.JvmConstructor it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateMember(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateMember(org.eclipse.xtext.common.types.JvmField it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateMember(org.eclipse.xtext.common.types.JvmMember it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateMember(org.eclipse.xtext.common.types.JvmOperation it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateModifier(org.eclipse.xtext.common.types.JvmConstructor it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateModifier(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateModifier(org.eclipse.xtext.common.types.JvmField it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateModifier(org.eclipse.xtext.common.types.JvmGenericType it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
_generateModifier(org.eclipse.xtext.common.types.JvmOperation it, ITreeAppendable appendable, GeneratorConfig config)
protected java.lang.Iterable<org.eclipse.xtext.common.types.JvmMember>
_getMembersToBeCompiled(org.eclipse.xtext.common.types.JvmDeclaredType it)
protected java.lang.Iterable<org.eclipse.xtext.common.types.JvmMember>
_getMembersToBeCompiled(org.eclipse.xtext.common.types.JvmEnumerationType type)
protected java.lang.Iterable<org.eclipse.xtext.common.types.JvmMember>
_getMembersToBeCompiled(org.eclipse.xtext.common.types.JvmGenericType it)
protected void
_internalDoGenerate(org.eclipse.emf.ecore.EObject obj, org.eclipse.xtext.generator.IFileSystemAccess fsa)
protected void
_internalDoGenerate(org.eclipse.xtext.common.types.JvmDeclaredType type, org.eclipse.xtext.generator.IFileSystemAccess fsa)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmAnnotationAnnotationValue value, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmBooleanAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmByteAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmCharAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmCustomAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmDoubleAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmEnumAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmFloatAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmIntAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmLongAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmShortAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmStringAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
protected void
_toJavaLiteral(org.eclipse.xtext.common.types.JvmTypeAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
void
addJavaDocImports(org.eclipse.emf.ecore.EObject it, ITreeAppendable appendable, java.util.List<org.eclipse.xtext.nodemodel.INode> documentationNodes)
protected void
appendCompilationTemplate(ITreeAppendable appendable, org.eclipse.xtext.common.types.JvmIdentifiableElement it)
void
assignThisAndSuper(ITreeAppendable b, org.eclipse.xtext.common.types.JvmDeclaredType declaredType, GeneratorConfig config)
ITreeAppendable
compile(org.eclipse.xtext.common.types.JvmExecutable executable, XExpression expression, org.eclipse.xtext.common.types.JvmTypeReference returnType, ITreeAppendable appendable, GeneratorConfig config)
org.eclipse.xtext.common.types.JvmGenericType
containerType(org.eclipse.emf.ecore.EObject context)
TreeAppendable
createAppendable(org.eclipse.emf.ecore.EObject context, ImportManager importManager, GeneratorConfig config)
protected ImportingStringConcatenation
createImportingStringConcatenation(SharedAppendableState state, ITypeReferenceOwner owner)
protected ImportManager
createImportManager(org.eclipse.xtext.common.types.JvmDeclaredType type)
protected java.lang.String
doConvertToJavaString(java.lang.String input)
Convert a given input string to a Java string.void
doGenerate(org.eclipse.emf.ecore.resource.Resource input, org.eclipse.xtext.generator.IFileSystemAccess fsa)
void
generateAnnotation(org.eclipse.xtext.common.types.JvmAnnotationReference it, ITreeAppendable appendable, GeneratorConfig config)
void
generateAnnotationMethod(org.eclipse.xtext.common.types.JvmOperation it, ITreeAppendable appendable, GeneratorConfig config)
void
generateAnnotations(java.lang.Iterable<org.eclipse.xtext.common.types.JvmAnnotationReference> annotations, ITreeAppendable appendable, boolean withLineBreak, GeneratorConfig config)
ITreeAppendable
generateAnnotationsWithSyntheticSuppressWarnings(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
Deprecated.Additional annotations should be created in the JVM model.ITreeAppendable
generateBody(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
ITreeAppendable
generateBodyWithIssues(org.eclipse.xtext.common.types.JvmExecutable op, ITreeAppendable appendable, java.lang.Iterable<org.eclipse.xtext.validation.Issue> errors)
ITreeAppendable
generateBodyWithIssues(ITreeAppendable appendable, java.lang.Iterable<org.eclipse.xtext.validation.Issue> errors)
void
generateDefaultExpression(org.eclipse.xtext.common.types.JvmOperation it, ITreeAppendable appendable, GeneratorConfig config)
protected ITreeAppendable
generateDocumentation(java.lang.String text, java.util.List<org.eclipse.xtext.nodemodel.INode> documentationNodes, ITreeAppendable appendable, GeneratorConfig config)
void
generateEnumLiteral(org.eclipse.xtext.common.types.JvmEnumerationLiteral it, ITreeAppendable appendable, GeneratorConfig config)
void
generateExecutableBody(org.eclipse.xtext.common.types.JvmExecutable op, ITreeAppendable appendable, GeneratorConfig config)
void
generateExtendsClause(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
void
generateFileHeader(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
void
generateInitialization(org.eclipse.xtext.common.types.JvmField it, ITreeAppendable appendable, GeneratorConfig config)
void
generateJavaDoc(org.eclipse.emf.ecore.EObject it, ITreeAppendable appendable, GeneratorConfig config)
ITreeAppendable
generateMember(org.eclipse.xtext.common.types.JvmMember it, ITreeAppendable appendable, GeneratorConfig config)
ITreeAppendable
generateMembersInBody(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
ITreeAppendable
generateModifier(org.eclipse.xtext.common.types.JvmMember it, ITreeAppendable appendable, GeneratorConfig config)
void
generateParameter(org.eclipse.xtext.common.types.JvmFormalParameter it, ITreeAppendable appendable, boolean vararg, GeneratorConfig config)
void
generateParameters(org.eclipse.xtext.common.types.JvmExecutable it, ITreeAppendable appendable, GeneratorConfig config)
void
generateThrowsClause(org.eclipse.xtext.common.types.JvmExecutable it, ITreeAppendable appendable, GeneratorConfig config)
java.lang.CharSequence
generateType(org.eclipse.xtext.common.types.JvmDeclaredType type, GeneratorConfig config)
void
generateTypeParameterConstraints(org.eclipse.xtext.common.types.JvmTypeParameter it, ITreeAppendable appendable, GeneratorConfig config)
void
generateTypeParameterDeclaration(org.eclipse.xtext.common.types.JvmTypeParameterDeclarator it, ITreeAppendable appendable, GeneratorConfig config)
void
generateTypeParameterDeclaration(org.eclipse.xtext.common.types.JvmTypeParameter it, ITreeAppendable appendable, GeneratorConfig config)
ITreeAppendable
generateVisibilityModifier(org.eclipse.xtext.common.types.JvmMember it, ITreeAppendable result)
ImportManager
getImportManager(ITreeAppendable appendable)
java.lang.Iterable<org.eclipse.xtext.common.types.JvmMember>
getMembersToBeCompiled(org.eclipse.xtext.common.types.JvmDeclaredType type)
protected java.util.Set<org.eclipse.emf.ecore.EObject>
getSourceElements(org.eclipse.emf.ecore.EObject jvmElement)
boolean
hasBody(org.eclipse.xtext.common.types.JvmExecutable it)
void
internalDoGenerate(org.eclipse.emf.ecore.EObject type, org.eclipse.xtext.generator.IFileSystemAccess fsa)
java.lang.String
javaName(org.eclipse.xtext.common.types.JvmVisibility visibility)
Returns the visibility modifier and a space as suffix if not emptyprotected java.lang.String
makeJavaIdentifier(java.lang.String name)
protected org.eclipse.xtext.xbase.lib.Functions.Function1<? super ITreeAppendable,? extends ITreeAppendable>
memberSeparator()
protected java.lang.String
reassignThisType(ITreeAppendable b, org.eclipse.xtext.common.types.JvmDeclaredType declaredType)
void
toJava(org.eclipse.xtext.common.types.JvmAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
void
toJavaLiteral(org.eclipse.xtext.common.types.JvmAnnotationValue value, ITreeAppendable appendable, GeneratorConfig config)
-
-
-
Field Detail
-
_iLogicalContainerProvider
@Inject @Extension protected ILogicalContainerProvider _iLogicalContainerProvider
-
_typeReferences
@Inject @Extension protected org.eclipse.xtext.common.types.util.TypeReferences _typeReferences
-
_treeAppendableUtil
@Inject @Extension protected TreeAppendableUtil _treeAppendableUtil
-
_jvmTypeExtensions
@Inject @Extension protected JvmTypeExtensions _jvmTypeExtensions
-
_loopExtensions
@Inject @Extension protected LoopExtensions _loopExtensions
-
_errorSafeExtensions
@Inject @Extension protected ErrorSafeExtensions _errorSafeExtensions
-
-
Method Detail
-
doGenerate
public void doGenerate(org.eclipse.emf.ecore.resource.Resource input, org.eclipse.xtext.generator.IFileSystemAccess fsa)
- Specified by:
doGenerate
in interfaceorg.eclipse.xtext.generator.IGenerator
-
_internalDoGenerate
protected void _internalDoGenerate(org.eclipse.emf.ecore.EObject obj, org.eclipse.xtext.generator.IFileSystemAccess fsa)
-
_internalDoGenerate
protected void _internalDoGenerate(org.eclipse.xtext.common.types.JvmDeclaredType type, org.eclipse.xtext.generator.IFileSystemAccess fsa)
-
createImportManager
protected ImportManager createImportManager(org.eclipse.xtext.common.types.JvmDeclaredType type)
-
generateType
public java.lang.CharSequence generateType(org.eclipse.xtext.common.types.JvmDeclaredType type, GeneratorConfig config)
-
_generateBody
protected ITreeAppendable _generateBody(org.eclipse.xtext.common.types.JvmGenericType it, ITreeAppendable appendable, GeneratorConfig config)
-
generateMembersInBody
public ITreeAppendable generateMembersInBody(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
-
memberSeparator
protected org.eclipse.xtext.xbase.lib.Functions.Function1<? super ITreeAppendable,? extends ITreeAppendable> memberSeparator()
- Since:
- 2.27
-
generateAnnotationsWithSyntheticSuppressWarnings
@Deprecated public ITreeAppendable generateAnnotationsWithSyntheticSuppressWarnings(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
Deprecated.Additional annotations should be created in the JVM model.
-
_generateBody
protected ITreeAppendable _generateBody(org.eclipse.xtext.common.types.JvmEnumerationType it, ITreeAppendable appendable, GeneratorConfig config)
-
generateEnumLiteral
public void generateEnumLiteral(org.eclipse.xtext.common.types.JvmEnumerationLiteral it, ITreeAppendable appendable, GeneratorConfig config)
-
_generateBody
protected ITreeAppendable _generateBody(org.eclipse.xtext.common.types.JvmAnnotationType it, ITreeAppendable appendable, GeneratorConfig config)
-
generateAnnotationMethod
public void generateAnnotationMethod(org.eclipse.xtext.common.types.JvmOperation it, ITreeAppendable appendable, GeneratorConfig config)
-
generateDefaultExpression
public void generateDefaultExpression(org.eclipse.xtext.common.types.JvmOperation it, ITreeAppendable appendable, GeneratorConfig config)
-
appendCompilationTemplate
protected void appendCompilationTemplate(ITreeAppendable appendable, org.eclipse.xtext.common.types.JvmIdentifiableElement it)
- Since:
- 2.16
-
createImportingStringConcatenation
protected ImportingStringConcatenation createImportingStringConcatenation(SharedAppendableState state, ITypeReferenceOwner owner)
-
_generateModifier
protected ITreeAppendable _generateModifier(org.eclipse.xtext.common.types.JvmGenericType it, ITreeAppendable appendable, GeneratorConfig config)
-
_generateModifier
protected ITreeAppendable _generateModifier(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
-
_generateModifier
protected ITreeAppendable _generateModifier(org.eclipse.xtext.common.types.JvmField it, ITreeAppendable appendable, GeneratorConfig config)
-
_generateModifier
protected ITreeAppendable _generateModifier(org.eclipse.xtext.common.types.JvmOperation it, ITreeAppendable appendable, GeneratorConfig config)
-
generateVisibilityModifier
public ITreeAppendable generateVisibilityModifier(org.eclipse.xtext.common.types.JvmMember it, ITreeAppendable result)
-
_generateModifier
protected ITreeAppendable _generateModifier(org.eclipse.xtext.common.types.JvmConstructor it, ITreeAppendable appendable, GeneratorConfig config)
-
javaName
public java.lang.String javaName(org.eclipse.xtext.common.types.JvmVisibility visibility)
Returns the visibility modifier and a space as suffix if not empty
-
generateExtendsClause
public void generateExtendsClause(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
-
_generateMember
protected ITreeAppendable _generateMember(org.eclipse.xtext.common.types.JvmMember it, ITreeAppendable appendable, GeneratorConfig config)
-
_generateMember
protected ITreeAppendable _generateMember(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
-
_generateMember
protected ITreeAppendable _generateMember(org.eclipse.xtext.common.types.JvmField it, ITreeAppendable appendable, GeneratorConfig config)
-
_generateMember
protected ITreeAppendable _generateMember(org.eclipse.xtext.common.types.JvmOperation it, ITreeAppendable appendable, GeneratorConfig config)
-
_generateMember
protected ITreeAppendable _generateMember(org.eclipse.xtext.common.types.JvmConstructor it, ITreeAppendable appendable, GeneratorConfig config)
-
generateInitialization
public void generateInitialization(org.eclipse.xtext.common.types.JvmField it, ITreeAppendable appendable, GeneratorConfig config)
-
generateTypeParameterDeclaration
public void generateTypeParameterDeclaration(org.eclipse.xtext.common.types.JvmTypeParameterDeclarator it, ITreeAppendable appendable, GeneratorConfig config)
-
generateTypeParameterDeclaration
public void generateTypeParameterDeclaration(org.eclipse.xtext.common.types.JvmTypeParameter it, ITreeAppendable appendable, GeneratorConfig config)
-
generateTypeParameterConstraints
public void generateTypeParameterConstraints(org.eclipse.xtext.common.types.JvmTypeParameter it, ITreeAppendable appendable, GeneratorConfig config)
-
generateThrowsClause
public void generateThrowsClause(org.eclipse.xtext.common.types.JvmExecutable it, ITreeAppendable appendable, GeneratorConfig config)
-
generateParameters
public void generateParameters(org.eclipse.xtext.common.types.JvmExecutable it, ITreeAppendable appendable, GeneratorConfig config)
-
generateParameter
public void generateParameter(org.eclipse.xtext.common.types.JvmFormalParameter it, ITreeAppendable appendable, boolean vararg, GeneratorConfig config)
-
hasBody
public boolean hasBody(org.eclipse.xtext.common.types.JvmExecutable it)
-
generateExecutableBody
public void generateExecutableBody(org.eclipse.xtext.common.types.JvmExecutable op, ITreeAppendable appendable, GeneratorConfig config)
-
compile
public ITreeAppendable compile(org.eclipse.xtext.common.types.JvmExecutable executable, XExpression expression, org.eclipse.xtext.common.types.JvmTypeReference returnType, ITreeAppendable appendable, GeneratorConfig config)
-
assignThisAndSuper
public void assignThisAndSuper(ITreeAppendable b, org.eclipse.xtext.common.types.JvmDeclaredType declaredType, GeneratorConfig config)
-
reassignThisType
protected java.lang.String reassignThisType(ITreeAppendable b, org.eclipse.xtext.common.types.JvmDeclaredType declaredType)
-
generateBodyWithIssues
public ITreeAppendable generateBodyWithIssues(org.eclipse.xtext.common.types.JvmExecutable op, ITreeAppendable appendable, java.lang.Iterable<org.eclipse.xtext.validation.Issue> errors)
- Since:
- 2.16
-
generateBodyWithIssues
public ITreeAppendable generateBodyWithIssues(ITreeAppendable appendable, java.lang.Iterable<org.eclipse.xtext.validation.Issue> errors)
-
doConvertToJavaString
protected java.lang.String doConvertToJavaString(java.lang.String input)
Convert a given input string to a Java string. Non-ascii characters will be replaced by a unicode escape sequence by default.
-
generateFileHeader
public void generateFileHeader(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
-
generateJavaDoc
public void generateJavaDoc(org.eclipse.emf.ecore.EObject it, ITreeAppendable appendable, GeneratorConfig config)
-
addJavaDocImports
public void addJavaDocImports(org.eclipse.emf.ecore.EObject it, ITreeAppendable appendable, java.util.List<org.eclipse.xtext.nodemodel.INode> documentationNodes)
-
getImportManager
public ImportManager getImportManager(ITreeAppendable appendable)
-
generateDocumentation
protected ITreeAppendable generateDocumentation(java.lang.String text, java.util.List<org.eclipse.xtext.nodemodel.INode> documentationNodes, ITreeAppendable appendable, GeneratorConfig config)
-
generateAnnotations
public void generateAnnotations(java.lang.Iterable<org.eclipse.xtext.common.types.JvmAnnotationReference> annotations, ITreeAppendable appendable, boolean withLineBreak, GeneratorConfig config)
-
generateAnnotation
public void generateAnnotation(org.eclipse.xtext.common.types.JvmAnnotationReference it, ITreeAppendable appendable, GeneratorConfig config)
-
toJava
public void toJava(org.eclipse.xtext.common.types.JvmAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmAnnotationAnnotationValue value, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmShortAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmIntAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmLongAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmByteAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmDoubleAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmFloatAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmCharAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmStringAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmTypeAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmEnumAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmBooleanAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
_toJavaLiteral
protected void _toJavaLiteral(org.eclipse.xtext.common.types.JvmCustomAnnotationValue it, ITreeAppendable appendable, GeneratorConfig config)
-
createAppendable
public TreeAppendable createAppendable(org.eclipse.emf.ecore.EObject context, ImportManager importManager, GeneratorConfig config)
-
containerType
public org.eclipse.xtext.common.types.JvmGenericType containerType(org.eclipse.emf.ecore.EObject context)
-
makeJavaIdentifier
protected java.lang.String makeJavaIdentifier(java.lang.String name)
-
_getMembersToBeCompiled
protected java.lang.Iterable<org.eclipse.xtext.common.types.JvmMember> _getMembersToBeCompiled(org.eclipse.xtext.common.types.JvmEnumerationType type)
-
_getMembersToBeCompiled
protected java.lang.Iterable<org.eclipse.xtext.common.types.JvmMember> _getMembersToBeCompiled(org.eclipse.xtext.common.types.JvmDeclaredType it)
-
_getMembersToBeCompiled
protected java.lang.Iterable<org.eclipse.xtext.common.types.JvmMember> _getMembersToBeCompiled(org.eclipse.xtext.common.types.JvmGenericType it)
-
getSourceElements
protected java.util.Set<org.eclipse.emf.ecore.EObject> getSourceElements(org.eclipse.emf.ecore.EObject jvmElement)
-
internalDoGenerate
public void internalDoGenerate(org.eclipse.emf.ecore.EObject type, org.eclipse.xtext.generator.IFileSystemAccess fsa)
-
generateBody
public ITreeAppendable generateBody(org.eclipse.xtext.common.types.JvmDeclaredType it, ITreeAppendable appendable, GeneratorConfig config)
-
generateModifier
public ITreeAppendable generateModifier(org.eclipse.xtext.common.types.JvmMember it, ITreeAppendable appendable, GeneratorConfig config)
-
generateMember
public ITreeAppendable generateMember(org.eclipse.xtext.common.types.JvmMember it, ITreeAppendable appendable, GeneratorConfig config)
-
toJavaLiteral
public void toJavaLiteral(org.eclipse.xtext.common.types.JvmAnnotationValue value, ITreeAppendable appendable, GeneratorConfig config)
-
getMembersToBeCompiled
public java.lang.Iterable<org.eclipse.xtext.common.types.JvmMember> getMembersToBeCompiled(org.eclipse.xtext.common.types.JvmDeclaredType type)
-
-