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
@Beta public interface CodeGenerationParticipant<T extends NamedElement>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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddoGenerateCode(java.util.List<? extends T> annotatedSourceElements, CodeGenerationContext context)Invoked by the compiler during the code generation phase.
-
-
-
Method Detail
-
doGenerateCode
void doGenerateCode(java.util.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.
-
-