- All Superinterfaces:
Annotated
,Prototype.Api
- All Known Implementing Classes:
TypedElementInfo.BuilderBase.TypedElementInfoImpl
An annotation with defined values.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forTypedElementInfo
.static class
TypedElementInfo.BuilderBase<BUILDER extends TypedElementInfo.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends TypedElementInfo> Fluent API builder base forTypedElementInfo
. -
Method Summary
Modifier and TypeMethodDescriptionAccess modifier of the element.static TypedElementInfo.Builder
builder()
Create a new fluent API builder to customize configuration.static TypedElementInfo.Builder
builder
(TypedElementInfo instance) Create a new fluent API builder from an existing instance.Returns the component type names describing the element.The default value assigned to the element, represented as a string.Description, such as javadoc, if available.Element modifiers.The element (e.g., method, field, etc) name.The list of known annotations on the type name referenced byTypedElementInfoBlueprint.typeName()
.Deprecated, for removal: This API element is subject to removal in a future version.The enclosing type name for this typed element.kind()
The kind of element (e.g., method, field, etc).Deprecated, for removal: This API element is subject to removal in a future version.useTypedElementInfoBlueprint.elementModifiers()
insteadThe element used to create this instance.Parameter arguments applicable if this type element represents aElementKind.METHOD
.Provides a description for this instance.typeName()
The type name for the element (e.g., java.util.List).Methods inherited from interface io.helidon.common.types.Annotated
allAnnotations, annotation, annotations, findAnnotation, hasAnnotation, inheritedAnnotations
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
toDeclaration
String toDeclaration()Provides a description for this instance.- Returns:
- provides the {typeName}{space}{elementName}
-
description
Description, such as javadoc, if available.- Returns:
- description of this element
-
typeName
TypeName typeName()The type name for the element (e.g., java.util.List). If the element is a method, then this is the return type of the method.- Returns:
- the type name of the element
-
elementName
String elementName()The element (e.g., method, field, etc) name.- Returns:
- the name of the element
-
elementTypeKind
Deprecated, for removal: This API element is subject to removal in a future version.useTypedElementInfoBlueprint.kind()
insteadThe kind of element (e.g., method, field, etc).- Returns:
- the element kind
- See Also:
-
kind
ElementKind kind()The kind of element (e.g., method, field, etc).- Returns:
- the element kind
- See Also:
-
defaultValue
The default value assigned to the element, represented as a string.- Returns:
- the default value as a string
-
elementTypeAnnotations
List<Annotation> elementTypeAnnotations()The list of known annotations on the type name referenced byTypedElementInfoBlueprint.typeName()
.- Returns:
- the list of annotations on this element's (return) type.
-
componentTypes
Returns the component type names describing the element.- Returns:
- the component type names of the element
-
modifiers
Deprecated, for removal: This API element is subject to removal in a future version.useTypedElementInfoBlueprint.elementModifiers()
insteadElement modifiers.- Returns:
- element modifiers
- See Also:
-
elementModifiers
Element modifiers.- Returns:
- element modifiers
- See Also:
-
accessModifier
AccessModifier accessModifier()Access modifier of the element.- Returns:
- access modifier
-
enclosingType
The enclosing type name for this typed element. Applicable when this instance represents aElementKind.FIELD
, orElementKind.METHOD
, orElementKind.PARAMETER
- Returns:
- the enclosing type element
-
parameterArguments
List<TypedElementInfo> parameterArguments()Parameter arguments applicable if this type element represents aElementKind.METHOD
. Each instance of this list will be the individualElementKind.PARAMETER
's for the method.- Returns:
- the list of parameters belonging to this method if applicable
-
throwsChecked
- Returns:
- set of thrown checked types
-
originatingElement
The element used to create this instance. The type of the object depends on the environment we are in - it may be anElement
in annotation processing, or aMethodInfo
(and such) when using classpath scanning.- Returns:
- originating element
-
TypedElementInfoBlueprint.kind()
instead