Module io.helidon.common.types
Package io.helidon.common.types
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>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.types.TypeInfo
TypeInfo.Builder, TypeInfo.BuilderBase<BUILDER extends TypeInfo.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends TypeInfo> -
Constructor Summary
ModifierConstructorDescriptionprotected
TypeInfoImpl
(TypeInfo.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionList of declared and known annotations for this element.boolean
int
hashCode()
default boolean
hasMetaAnnotation
(TypeName annotation, TypeName metaAnnotation) Check if an annotation type has a specific meta annotation.default boolean
hasMetaAnnotation
(TypeName annotation, TypeName metaAnnotation, boolean inherited) Check if an annotation type has a specific meta annotation.List of all inherited annotations for this element.kind()
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.module()
moduleNameOf
(TypeName typeName) UsesTypeInfoBlueprint.referencedModuleNames()
to determine if the module name is known for the given type.toString()
typeKind()
typeName()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.common.types.Annotated
allAnnotations, annotation, findAnnotation, hasAnnotation
-
Constructor Details
-
TypeInfoImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
typeName
-
description
-
typeKind
-
kind
-
elementInfo
-
otherElementInfo
-
referencedTypeNamesToAnnotations
-
referencedModuleNames
-
superTypeInfo
-
interfaceTypeInfo
-
modifiers
-
elementModifiers
-
accessModifier
-
module
-
originatingElement
-
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 theof the annotation
).- Specified by:
annotations
in interfaceAnnotated
- Returns:
- the list of annotations declared on this element
-
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 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.- Specified by:
inheritedAnnotations
in interfaceAnnotated
- Returns:
- list of all meta annotations of this element
-
toString
-
equals
-
hashCode
public int hashCode() -
hasMetaAnnotation
Check if an annotation type has a specific meta annotation.- Parameters:
annotation
- annotation to check meta annotation formetaAnnotation
- meta annotation type- Returns:
- whether the meta annotation is present on the annotation
-
hasMetaAnnotation
Check if an annotation type has a specific meta annotation.- Parameters:
annotation
- annotation to check meta annotation formetaAnnotation
- meta annotation typeinherited
- whether to include meta annotations of meta annotations- Returns:
- whether the meta annotation is present on the annotation
-
metaAnnotation
Find a meta annotation.- Parameters:
annotation
- annotation to check meta annotation formetaAnnotation
- meta annotation type- Returns:
- meta annotation, or empty if not defined
-
metaAnnotation
default Optional<Annotation> metaAnnotation(TypeName annotation, TypeName metaAnnotation, boolean inherited) Find a meta annotation.- Parameters:
annotation
- annotation to check meta annotation formetaAnnotation
- meta annotation typeinherited
- whether to include meta annotations of meta annotations- Returns:
- meta annotation, or empty if not defined
-
moduleNameOf
UsesTypeInfoBlueprint.referencedModuleNames()
to determine if the module name is known for the given type.- Parameters:
typeName
- the type name to lookup- Returns:
- the module name if it is known
-