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.
Author:
Sven Efftinge
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doGenerateCode(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 elements
      context - a TransformationContext providing useful services.