Module org.eclipse.xtend.lib.macro
Package org.eclipse.xtend.lib.macro
Interface CodeGenerationParticipant<T extends NamedElement>
- Type Parameters:
T- the type which this processor processes.
- All Known Implementing Classes:
AbstractAnnotationTypeProcessor,AbstractClassProcessor,AbstractConstructorProcessor,AbstractEnumerationTypeProcessor,AbstractFieldProcessor,AbstractInterfaceProcessor,AbstractMethodProcessor
Annotation processors implementing this interface will be called in the code generation phase, which is called
when Xtend's actual Java code is generated and written to the file system.
During this phase it is permitted to write to the file system.
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoGenerateCode(List<? extends T> annotatedSourceElements, CodeGenerationContext context) Invoked by the compiler during the code generation phase.
-
Method Details
-
doGenerateCode
void doGenerateCode(List<? extends T> annotatedSourceElements, @Extension CodeGenerationContext context) Invoked by the compiler during the code generation phase.- Parameters:
annotatedSourceElements- the immutable source representation (i.e. the Xtend AST) of the annotated elementscontext- aTransformationContextproviding useful services.
-