Top Description Methods
org.eclipse.xtend.lib.macro

public Interface CodeGenerationParticipant<T extends NamedElement>

Known Direct Implementers
org.eclipse.xtend.lib.macro.AbstractAnnotationTypeProcessor, org.eclipse.xtend.lib.macro.AbstractClassProcessor, org.eclipse.xtend.lib.macro.AbstractConstructorProcessor, org.eclipse.xtend.lib.macro.AbstractEnumerationTypeProcessor, org.eclipse.xtend.lib.macro.AbstractFieldProcessor, org.eclipse.xtend.lib.macro.AbstractInterfaceProcessor, org.eclipse.xtend.lib.macro.AbstractMethodProcessor
Annotations
@Beta
Type Parameters
<T>
the type which this processor processes.
Imports
java.util.List, org.eclipse.xtend.lib.macro.declaration.NamedElement, org.eclipse.xtext.xbase.lib.Extension, com.google.common.annotations.Beta

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 TypeMethod and Description
public void
doGenerateCode(List<? extends T>
the immutable source representation (i.e. the Xtend AST) of the annotated elements
annotatedSourceElements
,
CodeGenerationContext
a TransformationContext providing useful services.
context
)

Invoked by the compiler during the code generation phase.

Method Detail

doGenerateCodeback to summary
public void doGenerateCode(List<? extends T> annotatedSourceElements, CodeGenerationContext context)

Invoked by the compiler during the code generation phase.

Parameters
annotatedSourceElements:List<? extends T>

the immutable source representation (i.e. the Xtend AST) of the annotated elements

context:CodeGenerationContext

a TransformationContext providing useful services.