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