Uses of Interface
io.helidon.common.types.Annotation
Package
Description
Code generation and processing support.
Class model generator for annotation processors.
Service provider interfaces to extend code generation support.
Subset of Builder's SPI types that are useful for runtime.
-
Uses of Annotation in io.helidon.codegen
Modifier and TypeMethodDescriptionstatic Annotation
CodegenUtil.generatedAnnotation
(TypeName generator, TypeName trigger, TypeName generatedType, String versionId, String comments) Create a generated annotation.Modifier and TypeMethodDescriptionstatic List
<Annotation> TypeHierarchy.hierarchyAnnotations
(CodegenContext ctx, TypeInfo type) Find all annotations on the whole type hierarchy.static List
<Annotation> TypeHierarchy.hierarchyAnnotations
(CodegenContext ctx, TypeInfo type, TypedElementInfo element) Find all annotations on the whole type hierarchy.static List
<Annotation> TypeHierarchy.hierarchyAnnotations
(CodegenContext ctx, TypeInfo type, TypedElementInfo executable, TypedElementInfo parameter, int parameterIndex) Annotations of a parameter, taken from the full inheritance hierarchy (super type(s), interface(s).protected static List
<Annotation> TypeInfoFactoryBase.mapAnnotation
(CodegenContext ctx, Annotation annotation, ElementKind kind) Map an annotation using context type mappers.Modifier and TypeMethodDescriptionprotected static boolean
TypeInfoFactoryBase.annotationFilter
(Annotation annotation) A filter for annotations to exclude ones we are not interested in (SuppressWarnings
,Override
,Target
,Retention
,Repeatable
.protected static List
<Annotation> TypeInfoFactoryBase.mapAnnotation
(CodegenContext ctx, Annotation annotation, ElementKind kind) Map an annotation using context type mappers. -
Uses of Annotation in io.helidon.codegen.classmodel
Modifier and TypeMethodDescriptiondefault T
ContentBuilder.addContentCreate
(Annotation annotation) Add content that creates a newAnnotation
in the generated code that is the same as the annotation provided. -
Uses of Annotation in io.helidon.codegen.spi
Modifier and TypeMethodDescriptionGeneratedAnnotationProvider.create
(TypeName generator, TypeName trigger, TypeName generatedType, String versionId, String comments) Create a generated annotation.Modifier and TypeMethodDescriptionAnnotationMapper.mapAnnotation
(CodegenContext ctx, Annotation original, ElementKind elementKind) Map an annotation to a set of new annotations.Modifier and TypeMethodDescriptionAnnotationMapper.mapAnnotation
(CodegenContext ctx, Annotation original, ElementKind elementKind) Map an annotation to a set of new annotations.boolean
AnnotationMapper.supportsAnnotation
(Annotation annotation) Check if the annotation is supported. -
Uses of Annotation in io.helidon.common.types
Modifier and TypeClassDescriptionstatic class
Annotation.BuilderBase<BUILDER extends Annotation.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends Annotation> Fluent API builder base forAnnotation
.Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Modifier and TypeFieldDescriptionstatic final Annotation
Annotations.DEPRECATED
Deprecated annotation.static final Annotation
Annotations.OVERRIDE
Override annotation.Modifier and TypeMethodDescriptionstatic <T extends Annotation>
Optional<T> Annotations.findFirst
(TypeName annoTypeName, Collection<T> coll) Attempts to find the annotation in the provided collection.static <T extends Annotation>
Optional<T> Annotations.findFirst
(Class<? extends Annotation> annoType, Collection<T> coll) Attempts to find the annotation in the provided collection.static <T extends Annotation>
Optional<T> Annotations.findFirst
(String annoTypeName, Collection<T> coll) Attempts to find the annotation in the provided collection.Modifier and TypeMethodDescriptiondefault Annotation
Annotated.annotation
(TypeName annotationType) Get an annotation on this annotated type.Annotation.Builder.build()
Annotation.Builder.buildPrototype()
static Annotation
Creates an instance for an annotation with no value.static Annotation
Creates an instance for an annotation with a value.static Annotation
Creates an instance for annotation with zero or more values.static Annotation
Annotation.create
(Class<? extends Annotation> annoType) Creates an instance for an annotation with no value.static Annotation
Annotation.create
(Class<? extends Annotation> annoType, String value) Creates an instance for an annotation with a value.static Annotation
Annotation.create
(Class<? extends Annotation> annoType, Map<String, ?> values) Creates an instance for an annotation with a value.Modifier and TypeMethodDescriptiondefault List
<Annotation> Annotated.allAnnotations()
List of all annotations - bothAnnotated.annotations()
andAnnotated.inheritedAnnotations()
.Annotated.annotations()
List of declared and known annotations for this element.TypedElementInfo.BuilderBase.annotations()
List of declared and known annotations for this element.TypedElementInfo.BuilderBase.TypedElementInfoImpl.annotations()
TypeInfo.BuilderBase.annotations()
List of declared and known annotations for this element.TypeInfo.BuilderBase.TypeInfoImpl.annotations()
TypedElementInfo.BuilderBase.elementTypeAnnotations()
The list of known annotations on the type name referenced byTypedElementInfo.BuilderBase.typeName()
.TypedElementInfo.BuilderBase.TypedElementInfoImpl.elementTypeAnnotations()
default Optional
<Annotation> Annotated.findAnnotation
(TypeName annotationType) Find an annotation on this annotated type.Annotated.inheritedAnnotations()
List of all inherited annotations for this element.TypedElementInfo.BuilderBase.inheritedAnnotations()
List of all inherited annotations for this element.TypedElementInfo.BuilderBase.TypedElementInfoImpl.inheritedAnnotations()
TypeInfo.BuilderBase.inheritedAnnotations()
List of all inherited annotations for this element.TypeInfo.BuilderBase.TypeInfoImpl.inheritedAnnotations()
TypeInfo.BuilderBase.referencedTypeNamesToAnnotations()
Any Map, List, Set, or method that hasTypeNameBlueprint.typeArguments()
will be analyzed and any type arguments will have its annotations added here.TypeInfo.BuilderBase.TypeInfoImpl.referencedTypeNamesToAnnotations()
Modifier and TypeMethodDescriptionTypedElementInfo.BuilderBase.addAnnotation
(Annotation annotation) List of declared and known annotations for this element.TypeInfo.BuilderBase.addAnnotation
(Annotation annotation) List of declared and known annotations for this element.TypedElementInfo.BuilderBase.addInheritedAnnotation
(Annotation inheritedAnnotation) List of all inherited annotations for this element.TypeInfo.BuilderBase.addInheritedAnnotation
(Annotation inheritedAnnotation) List of all inherited annotations for this element.TypeInfo.BuilderBase.addReferencedTypeNamesToAnnotation
(TypeName key, Annotation referencedTypeNamesToAnnotation) This method adds a new value to the map value, or creates a new value.static Annotation.Builder
Annotation.builder
(Annotation instance) Create a new fluent API builder from an existing instance.int
Annotation.BuilderBase.AnnotationImpl.compareTo
(Annotation o) Annotation.BuilderBase.from
(Annotation prototype) Update this builder from an existing prototype instance.Modifier and TypeMethodDescriptionTypedElementInfo.BuilderBase.addAnnotations
(List<? extends Annotation> annotations) List of declared and known annotations for this element.TypeInfo.BuilderBase.addAnnotations
(List<? extends Annotation> annotations) List of declared and known annotations for this element.TypedElementInfo.BuilderBase.addElementTypeAnnotations
(List<? extends Annotation> elementTypeAnnotations) The list of known annotations on the type name referenced byTypedElementInfo.BuilderBase.typeName()
.TypedElementInfo.BuilderBase.addInheritedAnnotations
(List<? extends Annotation> inheritedAnnotations) List of all inherited annotations for this element.TypeInfo.BuilderBase.addInheritedAnnotations
(List<? extends Annotation> inheritedAnnotations) List of all inherited annotations for this element.TypeInfo.BuilderBase.addReferencedTypeNamesToAnnotations
(TypeName key, List<Annotation> referencedTypeNamesToAnnotations) This method adds a new value to the map value, or creates a new value.TypeInfo.BuilderBase.addReferencedTypeNamesToAnnotations
(Map<? extends TypeName, List<Annotation>> referencedTypeNamesToAnnotations) This method keeps existing values, then puts all new values into the map.TypedElementInfo.BuilderBase.annotations
(List<? extends Annotation> annotations) List of declared and known annotations for this element.TypeInfo.BuilderBase.annotations
(List<? extends Annotation> annotations) List of declared and known annotations for this element.TypedElementInfo.BuilderBase.elementTypeAnnotations
(List<? extends Annotation> elementTypeAnnotations) The list of known annotations on the type name referenced byTypedElementInfo.BuilderBase.typeName()
.TypedElementInfo.BuilderBase.inheritedAnnotations
(List<? extends Annotation> inheritedAnnotations) List of all inherited annotations for this element.TypeInfo.BuilderBase.inheritedAnnotations
(List<? extends Annotation> inheritedAnnotations) List of all inherited annotations for this element.TypeInfo.BuilderBase.putReferencedTypeNamesToAnnotation
(TypeName key, List<Annotation> referencedTypeNamesToAnnotation) This method adds a new value to the map, or replaces it if the key already exists.TypeInfo.BuilderBase.referencedTypeNamesToAnnotations
(Map<? extends TypeName, List<Annotation>> referencedTypeNamesToAnnotations) This method replaces all values with the new ones.