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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface TypeInfo
TypeInfo.Builder, TypeInfo.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forTypeInfo.static classTypeInfo.BuilderBase<BUILDER extends TypeInfo.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TypeInfo>Fluent API builder base forTypeInfo. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTypeInfoImpl(TypeInfo.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionAccess modifier.List of declared and known annotations for this element.The declared type name, including type parameters.Description, such as javadoc, if available.The elements that make up the type that are relevant for processing.Type modifiers.booleaninthashCode()List of all inherited annotations for this element.The interface classes for this type info.kind()The kind of this type.module()Module of this type, if available.The element used to create this instance.The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.rawType()The raw type name.Populated if the (external) module name containing the type is known.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()typeName()The type name.Methods inherited from interface Annotated
allAnnotations, annotation, findAnnotation, hasAnnotationModifier and TypeMethodDescriptiondefault List<Annotation> List of all annotations - bothAnnotated.annotations()andAnnotated.inheritedAnnotations().default Annotationannotation(TypeName annotationType) Get an annotation on this annotated type.default Optional<Annotation> findAnnotation(TypeName annotationType) Find an annotation on this annotated type.default booleanhasAnnotation(TypeName annotationType) Check if the annotation exists on this annotated.Methods inherited from interface TypeInfo
findInHierarchy, hasMetaAnnotation, hasMetaAnnotation, metaAnnotation, metaAnnotation, moduleNameOf, originatingElementValueModifier and TypeMethodDescriptionfindInHierarchy(TypeName typeName) Checks if the current type implements, or extends the provided type.default booleanhasMetaAnnotation(TypeName annotation, TypeName metaAnnotation) Check if an annotation type has a specific meta annotation.default booleanhasMetaAnnotation(TypeName annotation, TypeName metaAnnotation, boolean inherited) Check if an annotation type has a specific meta annotation.default Optional<Annotation> metaAnnotation(TypeName annotation, TypeName metaAnnotation) Find a meta annotation.default Optional<Annotation> metaAnnotation(TypeName annotation, TypeName metaAnnotation, boolean inherited) Find a meta annotation.moduleNameOf(TypeName typeName) UsesTypeInfo.referencedModuleNames()to determine if the module name is known for the given type.default ObjectThe element used to create this instance, orTypeInfo.typeName()if none provided.
-
Constructor Details
-
TypeInfoImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
typeName
Description copied from interface:TypeInfoThe type name. This type name represents the type usage of this type (obtained fromTypeInfo.superTypeInfo()orTypeInfo.interfaceTypeInfo()). In case this is a type info created fromTypeName, this will be the type name returned. -
rawType
Description copied from interface:TypeInfoThe raw type name. This is a unique identification of a type, containing ONLY: -
declaredType
Description copied from interface:TypeInfoThe declared type name, including type parameters.- Specified by:
declaredTypein interfaceTypeInfo- Returns:
- type name with declared type parameters
-
description
Description copied from interface:TypeInfoDescription, such as javadoc, if available.- Specified by:
descriptionin interfaceTypeInfo- Returns:
- description of this element
-
kind
Description copied from interface:TypeInfoThe kind of this type.Such as:
-
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
-
referencedModuleNames
-
superTypeInfo
Description copied from interface:TypeInfoThe parent/super class for this type info.- Specified by:
superTypeInfoin interfaceTypeInfo- Returns:
- the super type
-
interfaceTypeInfo
Description copied from interface:TypeInfoThe interface classes for this type info.- Specified by:
interfaceTypeInfoin interfaceTypeInfo- Returns:
- the interface type info
-
elementModifiers
Description copied from interface:TypeInfoType modifiers.- Specified by:
elementModifiersin interfaceTypeInfo- Returns:
- set of modifiers that are present on the type (and that we understand)
- See Also:
-
accessModifier
Description copied from interface:TypeInfoAccess modifier.- Specified by:
accessModifierin interfaceTypeInfo- Returns:
- access modifier
-
module
-
originatingElement
Description copied from interface:TypeInfoThe element used to create this instance. The type of the object depends on the environment we are in - it may be anTypeElementin annotation processing, or aClassInfowhen using classpath scanning.- Specified by:
originatingElementin interfaceTypeInfo- Returns:
- originating element
-
annotations
Description copied from interface:AnnotatedList 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 theof the annotation).- Specified by:
annotationsin interfaceAnnotated- Returns:
- the list of annotations declared on this element
-
inheritedAnnotations
Description copied from interface:AnnotatedList of all inherited annotations for this element. Inherited annotations are annotations declared on annotations of this element that are also marked asInherited.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:
inheritedAnnotationsin interfaceAnnotated- Returns:
- list of all meta annotations of this element
-
toString
-
equals
-
hashCode
-