- All Superinterfaces:
Annotated,Prototype.Api
- All Known Implementing Classes:
TypedElementInfo.BuilderBase.TypedElementInfoImpl
An annotation with defined values.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forTypedElementInfo.static classTypedElementInfo.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.Builderbuilder()Create a new fluent API builder to customize configuration.static TypedElementInfo.Builderbuilder(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 bytypeName().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.This option is deprecated, useelementModifiers()insteadThe element used to create this instance.default ObjectThe element used to create this instance, orsignature()if none provided.Parameter arguments applicable if this type element represents aElementKind.METHOD.Signature of this element.default StringProvides a description for this instance.typeName()The type name for the element (e.g., java.util.List).Type parameters of this element.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
Provides a description for this instance.- Returns:
- provides the {typeName}{space}{elementName}
-
originatingElementValue
The element used to create this instance, orsignature()if none provided. The type of the object depends on the environment we are in - it may be anTypeElementin annotation processing, or aMethodInfo(and such) when using classpath scanning.- Returns:
- originating element, or the signature of this element
-
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.This option is deprecated, usekind()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 bytypeName().- 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.This option is deprecated, useelementModifiers()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 anElementin annotation processing, or aMethodInfo(and such) when using classpath scanning.- Returns:
- originating element
-
signature
ElementSignature signature()Signature of this element.- Returns:
- signature of this element
- See Also:
-
typeParameters
Type parameters of this element. Such as when a method is declared as<T> T generate(Class<T> type), this would return the generic typeTwith no upper or lower bounds.- Returns:
- list of type parameters of this element
-
kind()instead