Class InjectionPointInfo.Builder

All Implemented Interfaces:
Prototype.Api, Prototype.Builder<InjectionPointInfo.Builder,InjectionPointInfo>, Builder<InjectionPointInfo.Builder,InjectionPointInfo>, ElementInfo, InjectionPointInfo, Supplier<InjectionPointInfo>
Enclosing interface:
InjectionPointInfo

Fluent API builder for InjectionPointInfo.
  • Field Details

  • Method Details

    • buildPrototype

      public InjectionPointInfo buildPrototype()
      Specified by:
      buildPrototype in interface Prototype.Builder<InjectionPointInfo.Builder,InjectionPointInfo>
    • build

      public InjectionPointInfo build()
      Specified by:
      build in interface Builder<InjectionPointInfo.Builder,InjectionPointInfo>
    • elementKind

      ElementKind elementKind()
      The injection point/receiver kind.
      Returns:
      the kind
    • access

      AccessModifier access()
      The access modifier on the injection point/receiver.
      Returns:
      the access
    • elementTypeName

      TypeName elementTypeName()
      The element type name (e.g., method type or field type).
      Returns:
      the target receiver type name
    • elementName

      String elementName()
      The element name (e.g., method name or field name).
      Returns:
      the target receiver name
    • elementOffset

      Optional<Integer> elementOffset()
      If the element is a method or constructor then this is the ordinal argument position of that argument.
      Returns:
      the offset argument, 0 based, or empty if field type
    • elementArgs

      Optional<Integer> elementArgs()
      If the element is a method or constructor then this is the total argument count for that method.
      Returns:
      total argument count
    • staticDeclaration

      boolean staticDeclaration()
      True if the injection point is static.
      Returns:
      true if static receiver
    • serviceTypeName

      TypeName serviceTypeName()
      The enclosing class name for the element.
      Returns:
      service type name
    • annotations

      Set<Annotation> annotations()
      The annotations on this element.
      Returns:
      the annotations on this element
    • qualifiers

      Set<Qualifier> qualifiers()
      The qualifier type annotations on this element.
      Returns:
      the qualifier type annotations on this element