Module org.eclipse.xtend.lib.macro
Package org.eclipse.xtend.lib.macro
Interface RegisterGlobalsParticipant<T extends NamedElement>
- Type Parameters:
T- the type of the annotated elements
- All Known Implementing Classes:
AbstractAnnotationTypeProcessor,AbstractClassProcessor,AbstractConstructorProcessor,AbstractEnumerationTypeProcessor,AbstractFieldProcessor,AbstractInterfaceProcessor,AbstractMethodProcessor
Call back to participate in the register-globals phase, where Java types are
collected.
Clients should implement this to register and create new Java types.
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoRegisterGlobals(List<? extends T> annotatedSourceElements, RegisterGlobalsContext context) Called by the compiler during register-globals phase.
-
Method Details
-
doRegisterGlobals
void doRegisterGlobals(List<? extends T> annotatedSourceElements, @Extension RegisterGlobalsContext context) Called by the compiler during register-globals phase.- Parameters:
annotatedSourceElements- the source elements from the currently processed compilation unit which are annotated with active annotationcontext- services to register new Java types- See Also:
-