@Beta public abstract class AbstractEnumerationTypeProcessor extends java.lang.Object implements RegisterGlobalsParticipant<EnumerationTypeDeclaration>, TransformationParticipant<MutableEnumerationTypeDeclaration>, CodeGenerationParticipant<EnumerationTypeDeclaration>, ValidationParticipant<EnumerationTypeDeclaration>
Constructor and Description |
---|
AbstractEnumerationTypeProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
doGenerateCode(EnumerationTypeDeclaration annotatedEnumerationType,
CodeGenerationContext context)
Called during code generation.
|
void |
doGenerateCode(java.util.List<? extends EnumerationTypeDeclaration> annotatedSourceElements,
CodeGenerationContext context)
Invoked by the compiler during the code generation phase.
|
void |
doRegisterGlobals(EnumerationTypeDeclaration annotatedEnumerationType,
RegisterGlobalsContext context)
Called during global symbol collecting.
|
void |
doRegisterGlobals(java.util.List<? extends EnumerationTypeDeclaration> annotatedEnumerationTypes,
RegisterGlobalsContext context)
Called by the compiler during register-globals phase.
|
void |
doTransform(java.util.List<? extends MutableEnumerationTypeDeclaration> annotatedEnumerationTypes,
TransformationContext context)
Invoked by the compiler
|
void |
doTransform(MutableEnumerationTypeDeclaration annotatedEnumerationType,
TransformationContext context) |
void |
doValidate(EnumerationTypeDeclaration annotatedEnumerationType,
ValidationContext context)
Invoked by the validator
|
void |
doValidate(java.util.List<? extends EnumerationTypeDeclaration> annotatedEnumerationTypes,
ValidationContext context)
Invoked by the validator
|
public void doRegisterGlobals(java.util.List<? extends EnumerationTypeDeclaration> annotatedEnumerationTypes, @Extension RegisterGlobalsContext context)
RegisterGlobalsParticipant
doRegisterGlobals
in interface RegisterGlobalsParticipant<EnumerationTypeDeclaration>
annotatedEnumerationTypes
- the source elements from the currently processed compilation
unit which are annotated with active annotationcontext
- services to register new Java typesRegisterGlobalsContext
public void doRegisterGlobals(EnumerationTypeDeclaration annotatedEnumerationType, @Extension RegisterGlobalsContext context)
annotatedEnumerationType
- a source element annotated with the annotation this processor is responsible for.context
- public void doTransform(java.util.List<? extends MutableEnumerationTypeDeclaration> annotatedEnumerationTypes, @Extension TransformationContext context)
TransformationParticipant
doTransform
in interface TransformationParticipant<MutableEnumerationTypeDeclaration>
annotatedEnumerationTypes
- the mutable java representation of the annotated elementscontext
- a TransformationContext
providing useful services.public void doTransform(MutableEnumerationTypeDeclaration annotatedEnumerationType, @Extension TransformationContext context)
annotatedEnumerationType
- a mutable enumeration type representation annotated with the annotation this processor is responsible for.context
- public void doGenerateCode(java.util.List<? extends EnumerationTypeDeclaration> annotatedSourceElements, @Extension CodeGenerationContext context)
CodeGenerationParticipant
doGenerateCode
in interface CodeGenerationParticipant<EnumerationTypeDeclaration>
annotatedSourceElements
- the immutable source representation (i.e. the Xtend AST) of the annotated elementscontext
- a TransformationContext
providing useful services.public void doGenerateCode(EnumerationTypeDeclaration annotatedEnumerationType, @Extension CodeGenerationContext context)
annotatedEnumerationType
- a source element annotated with the annotation this processor is responsible for.context
- CodeGenerationParticipant.doGenerateCode(List, CodeGenerationContext)
public void doValidate(java.util.List<? extends EnumerationTypeDeclaration> annotatedEnumerationTypes, @Extension ValidationContext context)
ValidationParticipant
doValidate
in interface ValidationParticipant<EnumerationTypeDeclaration>
annotatedEnumerationTypes
- the java representation of the annotated elementscontext
- a ValidationContext
providing useful services.public void doValidate(EnumerationTypeDeclaration annotatedEnumerationType, @Extension ValidationContext context)
annotatedEnumerationType
- the generated enumeration type that should be validatedcontext
- doValidate(List, ValidationContext)