Interface TypedElementInfo
- 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().The enclosing type name for this typed element.kind()The kind of element (e.g., method, field, etc).The 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 Annotated
allAnnotations, annotation, annotations, findAnnotation, hasAnnotation, inheritedAnnotationsModifier and TypeMethodDescriptiondefault List<Annotation> List of all annotations - bothAnnotated.annotations()andAnnotated.inheritedAnnotations().default Annotationannotation(TypeName annotationType) Get an annotation on this annotated type.List of declared and known annotations for this element.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.List of all inherited annotations for this element.
-
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
-
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
-
kind
ElementKind kind()The kind of element (e.g., method, field, etc).- Returns:
- the element kind
- See Also:
-
defaultValue
-
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
-
elementModifiers
-
accessModifier
-
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
-
originatingElement
-
signature
ElementSignature signature()Signature of this element.- Returns:
- signature of this element
- See Also:
-
typeParameters
-