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