Class TypeInfo.BuilderBase.TypeInfoImpl

java.lang.Object
io.helidon.common.types.TypeInfo.BuilderBase.TypeInfoImpl
All Implemented Interfaces:
Prototype.Api, Annotated, TypeInfo
Enclosing class:
TypeInfo.BuilderBase<BUILDER extends TypeInfo.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TypeInfo>

protected static class TypeInfo.BuilderBase.TypeInfoImpl extends Object implements TypeInfo
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • TypeInfoImpl

      protected TypeInfoImpl(TypeInfo.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • typeName

      public TypeName typeName()
      Description copied from interface: TypeInfo
      The type name. This type name represents the type usage of this type (obtained from TypeInfo.superTypeInfo() or TypeInfo.interfaceTypeInfo()). In case this is a type info created from TypeName, this will be the type name returned.
      Specified by:
      typeName in interface TypeInfo
      Returns:
      the type name
    • rawType

      public TypeName rawType()
      Description copied from interface: TypeInfo
      The raw type name. This is a unique identification of a type, containing ONLY:
      Specified by:
      rawType in interface TypeInfo
      Returns:
      raw type of this type info
    • declaredType

      public TypeName declaredType()
      Description copied from interface: TypeInfo
      The declared type name, including type parameters.
      Specified by:
      declaredType in interface TypeInfo
      Returns:
      type name with declared type parameters
    • description

      public Optional<String> description()
      Description copied from interface: TypeInfo
      Description, such as javadoc, if available.
      Specified by:
      description in interface TypeInfo
      Returns:
      description of this element
    • kind

      public ElementKind kind()
      Description copied from interface: TypeInfo
      Specified by:
      kind in interface TypeInfo
      Returns:
      element kind of this type
    • elementInfo

      public List<TypedElementInfo> elementInfo()
      Description copied from interface: TypeInfo
      The elements that make up the type that are relevant for processing.
      Specified by:
      elementInfo in interface TypeInfo
      Returns:
      the elements that make up the type that are relevant for processing
    • otherElementInfo

      public List<TypedElementInfo> otherElementInfo()
      Description copied from interface: TypeInfo
      The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.
      Specified by:
      otherElementInfo in interface TypeInfo
      Returns:
      the elements that still make up the type, but are otherwise deemed irrelevant for processing
    • referencedTypeNamesToAnnotations

      public Map<TypeName, List<Annotation>> referencedTypeNamesToAnnotations()
      Description copied from interface: TypeInfo
      Any Map, List, Set, or method that has TypeName.typeArguments() will be analyzed and any type arguments will have its annotations added here. Note that this only applies to non-built-in types.
      Specified by:
      referencedTypeNamesToAnnotations in interface TypeInfo
      Returns:
      all referenced types
    • referencedModuleNames

      public Map<TypeName,String> referencedModuleNames()
      Description copied from interface: TypeInfo
      Populated if the (external) module name containing the type is known.
      Specified by:
      referencedModuleNames in interface TypeInfo
      Returns:
      type names to its associated defining module name
    • superTypeInfo

      public Optional<TypeInfo> superTypeInfo()
      Description copied from interface: TypeInfo
      The parent/super class for this type info.
      Specified by:
      superTypeInfo in interface TypeInfo
      Returns:
      the super type
    • interfaceTypeInfo

      public List<TypeInfo> interfaceTypeInfo()
      Description copied from interface: TypeInfo
      The interface classes for this type info.
      Specified by:
      interfaceTypeInfo in interface TypeInfo
      Returns:
      the interface type info
    • elementModifiers

      public Set<Modifier> elementModifiers()
      Description copied from interface: TypeInfo
      Type modifiers.
      Specified by:
      elementModifiers in interface TypeInfo
      Returns:
      set of modifiers that are present on the type (and that we understand)
      See Also:
    • accessModifier

      public AccessModifier accessModifier()
      Description copied from interface: TypeInfo
      Access modifier.
      Specified by:
      accessModifier in interface TypeInfo
      Returns:
      access modifier
    • module

      public Optional<String> module()
      Description copied from interface: TypeInfo
      Module of this type, if available.
      Specified by:
      module in interface TypeInfo
      Returns:
      module name
    • originatingElement

      public Optional<Object> originatingElement()
      Description copied from interface: TypeInfo
      The element used to create this instance. The type of the object depends on the environment we are in - it may be an TypeElement in annotation processing, or a ClassInfo when using classpath scanning.
      Specified by:
      originatingElement in interface TypeInfo
      Returns:
      originating element
    • annotations

      public List<Annotation> annotations()
      Description copied from interface: Annotated
      List of declared and known annotations for this element. Note that "known" implies that the annotation is visible, which depends upon the context in which it was build (such as the of the annotation).
      Specified by:
      annotations in interface Annotated
      Returns:
      the list of annotations declared on this element
    • inheritedAnnotations

      public List<Annotation> inheritedAnnotations()
      Description copied from interface: Annotated
      List of all inherited annotations for this element. Inherited annotations are annotations declared on annotations of this element that are also marked as Inherited.

      The returned list does not contain Annotated.annotations(). If a meta-annotation is present on multiple annotations, it will be returned once for each such declaration.

      This method does not return annotations on super types or interfaces!

      Specified by:
      inheritedAnnotations in interface Annotated
      Returns:
      list of all meta annotations of this element
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object