Package org.eclipse.xtend.lib.macro
Annotation Type Active
-
@Beta @Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface ActiveThe active annotation is used to register compilation participants with annotations. They allow for enhancing and changing how Xtend code is translated to Java. There are four compiler phases in which an active annotation can participate, each with different possibilities and constraints:- Phase 1: Register Globals
RegisterGlobalsParticipant - Phase 2: Transformation
TransformationParticipant - Phase 3: Validate Code
ValidationParticipant - Phase 4: Generate Code
CodeGenerationParticipant
- Phase 1: Register Globals
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<?>value
-
-
-
Element Detail
-
value
java.lang.Class<?> value
- Returns:
- the processor to call during compilation. should implement one or
more of the processor interfaces
RegisterGlobalsParticipant,TransformationParticipant.
-
-