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
@Beta public interface RegisterGlobalsParticipant<T extends NamedElement>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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddoRegisterGlobals(java.util.List<? extends T> annotatedSourceElements, RegisterGlobalsContext context)Called by the compiler during register-globals phase.
-
-
-
Method Detail
-
doRegisterGlobals
void doRegisterGlobals(java.util.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:
RegisterGlobalsContext
-
-