java.lang.Object
io.helidon.common.types.DefaultTypeInfo
- All Implemented Interfaces:
TypeInfo
Default implementation for
TypeInfo.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface io.helidon.common.types.TypeInfo
KIND_ANNOTATION_TYPE, KIND_CLASS, KIND_CONSTRUCTOR, KIND_ENUM, KIND_FIELD, KIND_INTERFACE, KIND_METHOD, KIND_PACKAGE, KIND_PARAMETER, KIND_RECORD, MODIFIER_ABSTRACT, MODIFIER_DEFAULT, MODIFIER_FINAL, MODIFIER_PRIVATE, MODIFIER_PROTECTED, MODIFIER_PUBLIC, MODIFIER_SEALED, MODIFIER_STATIC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor taking the builder as an argument. -
Method Summary
Modifier and TypeMethodDescriptionThe annotations on the type.static DefaultTypeInfo.Builderbuilder()Creates a new builder for this type.The elements that make up the type that are relevant for processing.Element modifiers.The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.Any Map, List, Set, or method that hasTypeName.typeArguments()will be analyzed and any type arguments will have its annotations added here.The parent/super class for this type info.toString()protected StringCalculates the inner portion of thetoString()result.typeKind()The type element kind.typeName()The type name.
-
Constructor Details
-
DefaultTypeInfo
Default constructor taking the builder as an argument.- Parameters:
b- the builder- See Also:
-
-
Method Details
-
builder
Creates a new builder for this type.- Returns:
- the fluent builder
-
typeName
Description copied from interface:TypeInfoThe type name. -
typeKind
Description copied from interface:TypeInfoThe type element kind.- Specified by:
typeKindin interfaceTypeInfo- Returns:
- the type element kind (e.g., ""INTERFACE"", ""ANNOTATION_TYPE"", etc.)
- See Also:
-
annotations
Description copied from interface:TypeInfoThe annotations on the type.- Specified by:
annotationsin interfaceTypeInfo- Returns:
- the annotations on the type
-
elementInfo
Description copied from interface:TypeInfoThe elements that make up the type that are relevant for processing.- Specified by:
elementInfoin interfaceTypeInfo- Returns:
- the elements that make up the type that are relevant for processing
-
otherElementInfo
Description copied from interface:TypeInfoThe elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.- Specified by:
otherElementInfoin interfaceTypeInfo- Returns:
- the elements that still make up the type, but are otherwise deemed irrelevant for processing
-
referencedTypeNamesToAnnotations
Description copied from interface:TypeInfoAny Map, List, Set, or method that hasTypeName.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:
referencedTypeNamesToAnnotationsin interfaceTypeInfo- Returns:
- all referenced types
-
superTypeInfo
Description copied from interface:TypeInfoThe parent/super class for this type info.- Specified by:
superTypeInfoin interfaceTypeInfo- Returns:
- the super type
-
modifierNames
Description copied from interface:TypeInfoElement modifiers.- Specified by:
modifierNamesin interfaceTypeInfo- Returns:
- element modifiers
- See Also:
-
toString
-
toStringInner
Calculates the inner portion of thetoString()result.- Returns:
- the inner portion of the toString result
-