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 TypeMethodDescriptionThe list of 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.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) UsesreferencedModuleNames()
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
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
The list of known annotations for this element. Note that "known" implies that the annotation is visible, which depends upon the context in which it was build.- Specified by:
annotations
in interfaceAnnotated
- Returns:
- the list of annotations on 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
UsesreferencedModuleNames()
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
-