Interface CustomAnnotationTemplateRequest


public interface CustomAnnotationTemplateRequest
The request will be generated internally and then passed to the appropriate CustomAnnotationTemplateCreator to handle the request.
  • Method Details

    • annoTypeName

      TypeName annoTypeName()
      The type of the annotation being processed.
      Returns:
      the type of the annotation being processed
    • targetElement

      TypedElementName targetElement()
      The target element being processed. This element is the one with the annoTypeName() assigned to it.
      Returns:
      the target element being processed
    • targetElementAccess

      ElementInfo.Access targetElementAccess()
      The access modifier of the element.
      Returns:
      the access modifier of the element
    • targetElementArgs

      List<TypedElementName> targetElementArgs()
      Returns:
      the list of typed arguments for this method or constructor
    • isElementStatic

      boolean isElementStatic()
      Returns true if the element is declared to be static.
      Returns:
      returns true if the element is declared to be private
    • serviceInfo

      ServiceInfoBasics serviceInfo()
      Projects the enclosingTypeInfo() as a ServiceInfoBasics type.
      Returns:
      the basic service info of the element being processed
    • enclosingTypeInfo

      TypeInfo enclosingTypeInfo()
      The enclosing class type info of the target element being processed.
      Returns:
      the enclosing class type info of the target element being processed
    • isFilerEnabled

      boolean isFilerEnabled()
      Returns true if the code should be literally generated with the provided filer.
      Returns:
      true if the code should be literally generated with the filer
    • genericTemplateCreator

      GenericTemplateCreator genericTemplateCreator()
      Generic template creator.
      Returns:
      the generic template creator