java.lang.Object
io.helidon.builder.processor.spi.DefaultTypeInfo
All Implemented Interfaces:
TypeInfo

public class DefaultTypeInfo extends Object implements TypeInfo
Default implementation for TypeInfo.
  • Constructor Details

    • DefaultTypeInfo

      protected DefaultTypeInfo(DefaultTypeInfo.Builder b)
      Default constructor taking the builder as an argument.
      Parameters:
      b - the builder
      See Also:
  • Method Details

    • builder

      public static DefaultTypeInfo.Builder builder()
      Creates a new builder for this type.
      Returns:
      the fluent builder
    • typeName

      public TypeName typeName()
      Description copied from interface: TypeInfo
      The type name.
      Specified by:
      typeName in interface TypeInfo
      Returns:
      the type name
    • typeKind

      public String typeKind()
      Description copied from interface: TypeInfo
      The type element kind.
      Specified by:
      typeKind in interface TypeInfo
      Returns:
      the type element kind (e.g., "INTERFACE", "ANNOTATION_TYPE", etc.)
    • annotations

      public List<AnnotationAndValue> annotations()
      Description copied from interface: TypeInfo
      The annotations on the type.
      Specified by:
      annotations in interface TypeInfo
      Returns:
      the annotations on the type
    • elementInfo

      public List<TypedElementName> 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<TypedElementName> 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
    • 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.
    • toString

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

      protected String toStringInner()
      Calculates the inner portion of the toString() result.
      Returns:
      the inner portion of the toString result