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.
Author:
Sven Efftinge
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doRegisterGlobals(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 annotation
      context - services to register new Java types
      See Also: