Class AbstractElementInfo

java.lang.Object
io.helidon.pico.api.AbstractElementInfo
All Implemented Interfaces:
ElementInfo
Direct Known Subclasses:
AbstractInjectionPointInfo, DefaultElementInfo

@Generated(value="io.helidon.builder.processor.tools.DefaultBuilderCreatorProvider", comments="version=1") public abstract class AbstractElementInfo extends Object implements ElementInfo
Abstract implementation w/ builder for ElementInfo.
  • Constructor Details

    • AbstractElementInfo

      protected AbstractElementInfo(AbstractElementInfo.Builder<?,?> b)
      Constructor using the builder argument.
      Parameters:
      b - the builder
  • Method Details

    • elementKind

      public ElementInfo.ElementKind elementKind()
      Description copied from interface: ElementInfo
      The injection point/receiver kind.
      Specified by:
      elementKind in interface ElementInfo
      Returns:
      the kind
    • access

      public ElementInfo.Access access()
      Description copied from interface: ElementInfo
      The access modifier on the injection point/receiver.
      Specified by:
      access in interface ElementInfo
      Returns:
      the access
    • elementTypeName

      public String elementTypeName()
      Description copied from interface: ElementInfo
      The element type name (e.g., method type or field type).
      Specified by:
      elementTypeName in interface ElementInfo
      Returns:
      the target receiver type name
    • elementName

      public String elementName()
      Description copied from interface: ElementInfo
      The element name (e.g., method name or field name).
      Specified by:
      elementName in interface ElementInfo
      Returns:
      the target receiver name
    • elementOffset

      public Optional<Integer> elementOffset()
      Description copied from interface: ElementInfo
      If the element is a method or constructor then this is the ordinal argument position of that argument.
      Specified by:
      elementOffset in interface ElementInfo
      Returns:
      the offset argument, 0 based, or empty if field type
    • elementArgs

      public Optional<Integer> elementArgs()
      Description copied from interface: ElementInfo
      If the element is a method or constructor then this is the total argument count for that method.
      Specified by:
      elementArgs in interface ElementInfo
      Returns:
      total argument count
    • staticDeclaration

      public boolean staticDeclaration()
      Description copied from interface: ElementInfo
      True if the injection point is static.
      Specified by:
      staticDeclaration in interface ElementInfo
      Returns:
      true if static receiver
    • serviceTypeName

      public String serviceTypeName()
      Description copied from interface: ElementInfo
      The enclosing class name for the element.
      Specified by:
      serviceTypeName in interface ElementInfo
      Returns:
      service type name
    • annotations

      public Set<AnnotationAndValue> annotations()
      Description copied from interface: ElementInfo
      The annotations on this element.
      Specified by:
      annotations in interface ElementInfo
      Returns:
      the annotations on this element
    • qualifiers

      public Set<QualifierAndValue> qualifiers()
      Description copied from interface: ElementInfo
      The qualifier type annotations on this element.
      Specified by:
      qualifiers in interface ElementInfo
      Returns:
      the qualifier type annotations on this element
    • __metaAttributes

      public static Map<String,Map<String,Object>> __metaAttributes()
      The map of meta attributes describing each element of this type.
      Returns:
      the map of meta attributes using the key being the attribute name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringInner

      protected String toStringInner()
      Produces the inner portion of the toString() output (i.e., what is between the parens).
      Returns:
      portion of the toString output
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • visitAttributes

      public <T> void visitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx)
      Visits all attributes of io.helidon.pico.api.ElementInfo, calling the AttributeVisitor for each.
      Type Parameters:
      T - type of the user defined context
      Parameters:
      visitor - the visitor called for each attribute
      userDefinedCtx - any object you wish to pass to each visit call