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