Module org.eclipse.xtend.lib.macro
Package org.eclipse.xtend.lib.macro
Interface TransformationParticipant<T extends MutableNamedElement>
- Type Parameters:
T- the type which this processor processes.
- All Known Implementing Classes:
AbstractAnnotationTypeProcessor,AbstractClassProcessor,AbstractConstructorProcessor,AbstractEnumerationTypeProcessor,AbstractFieldProcessor,AbstractInterfaceProcessor,AbstractMethodProcessor
A callback interface for the transformation phase, in which the Xtend AST is translated
to the Java elements. This callback is invoked after the primary translation by the Xtend compiler is done.
It is safe to resolve any
TypeReferences during this phase as long as they are not
inferred from an expression. It's not allowed to resolve any expressions during this phase.- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoTransform(List<? extends T> annotatedTargetElements, TransformationContext context) Invoked by the compiler
-
Method Details
-
doTransform
void doTransform(List<? extends T> annotatedTargetElements, @Extension TransformationContext context) Invoked by the compiler- Parameters:
annotatedTargetElements- the mutable java representation of the annotated elementscontext- aTransformationContextproviding useful services.
-