Class TypedElementInfo.BuilderBase.TypedElementInfoImpl
java.lang.Object
io.helidon.common.types.TypedElementInfo.BuilderBase.TypedElementInfoImpl
- All Implemented Interfaces:
Prototype.Api, Annotated, TypedElementInfo
- Enclosing class:
TypedElementInfo.BuilderBase<BUILDER extends TypedElementInfo.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TypedElementInfo>
protected static class TypedElementInfo.BuilderBase.TypedElementInfoImpl
extends Object
implements TypedElementInfo
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TypedElementInfo
TypedElementInfo.Builder, TypedElementInfo.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forTypedElementInfo.static classTypedElementInfo.BuilderBase<BUILDER extends TypedElementInfo.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TypedElementInfo>Fluent API builder base forTypedElementInfo. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTypedElementInfoImpl(TypedElementInfo.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionAccess modifier of the element.List of declared and known annotations for this element.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 byTypedElementInfo.typeName().The enclosing type name for this typed element.booleaninthashCode()List of all inherited annotations for this element.kind()The kind of element (e.g., method, field, etc).The element used to create this instance.Parameter arguments applicable if this type element represents aElementKind.METHOD.Signature of this element.toString()typeName()The type name for the element (e.g., java.util.List).Type parameters of this element.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 TypedElementInfo
originatingElementValue, toDeclarationModifier and TypeMethodDescriptiondefault ObjectThe element used to create this instance, orTypedElementInfo.signature()if none provided.default StringProvides a description for this instance.
-
Constructor Details
-
TypedElementInfoImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
toString
-
description
Description copied from interface:TypedElementInfoDescription, such as javadoc, if available.- Specified by:
descriptionin interfaceTypedElementInfo- Returns:
- description of this element
-
typeName
Description copied from interface:TypedElementInfoThe 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.- Specified by:
typeNamein interfaceTypedElementInfo- Returns:
- the type name of the element
-
elementName
Description copied from interface:TypedElementInfoThe element (e.g., method, field, etc) name.- Specified by:
elementNamein interfaceTypedElementInfo- Returns:
- the name of the element
-
kind
Description copied from interface:TypedElementInfoThe kind of element (e.g., method, field, etc).- Specified by:
kindin interfaceTypedElementInfo- Returns:
- the element kind
- See Also:
-
defaultValue
Description copied from interface:TypedElementInfoThe default value assigned to the element, represented as a string.- Specified by:
defaultValuein interfaceTypedElementInfo- Returns:
- the default value as a string
-
elementTypeAnnotations
Description copied from interface:TypedElementInfoThe list of known annotations on the type name referenced byTypedElementInfo.typeName().- Specified by:
elementTypeAnnotationsin interfaceTypedElementInfo- Returns:
- the list of annotations on this element's (return) type.
-
componentTypes
Description copied from interface:TypedElementInfoReturns the component type names describing the element.- Specified by:
componentTypesin interfaceTypedElementInfo- Returns:
- the component type names of the element
-
elementModifiers
Description copied from interface:TypedElementInfoElement modifiers.- Specified by:
elementModifiersin interfaceTypedElementInfo- Returns:
- element modifiers
- See Also:
-
accessModifier
Description copied from interface:TypedElementInfoAccess modifier of the element.- Specified by:
accessModifierin interfaceTypedElementInfo- Returns:
- access modifier
-
enclosingType
Description copied from interface:TypedElementInfoThe enclosing type name for this typed element. Applicable when this instance represents aElementKind.FIELD, orElementKind.METHOD, orElementKind.PARAMETER- Specified by:
enclosingTypein interfaceTypedElementInfo- Returns:
- the enclosing type element
-
parameterArguments
Description copied from interface:TypedElementInfoParameter arguments applicable if this type element represents aElementKind.METHOD. Each instance of this list will be the individualElementKind.PARAMETER's for the method.- Specified by:
parameterArgumentsin interfaceTypedElementInfo- Returns:
- the list of parameters belonging to this method if applicable
-
throwsChecked
Description copied from interface:TypedElementInfo- Specified by:
throwsCheckedin interfaceTypedElementInfo- Returns:
- set of thrown checked types
-
originatingElement
Description copied from interface:TypedElementInfoThe 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.- Specified by:
originatingElementin interfaceTypedElementInfo- Returns:
- originating element
-
signature
Description copied from interface:TypedElementInfoSignature of this element.- Specified by:
signaturein interfaceTypedElementInfo- Returns:
- signature of this element
- See Also:
-
typeParameters
Description copied from interface:TypedElementInfoType 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.- Specified by:
typeParametersin interfaceTypedElementInfo- Returns:
- list of type parameters of this 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
-
equals
-
hashCode
-