Uses of Interface
io.helidon.common.types.Annotation
Packages that use 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.
Reflection support to obtain instances of common types, and to synthesize instances of annotations from
Annotation
.API required to define services, and to compile the code generated sources for Helidon Service Registry,
with a core service registry implementation (replacement for
ServiceLoader
).-
Uses of Annotation in io.helidon.codegen
Methods in io.helidon.codegen that return AnnotationModifier and TypeMethodDescriptionstatic Annotation
CodegenUtil.generatedAnnotation
(TypeName generator, TypeName trigger, TypeName generatedType, String versionId, String comments) Create a generated annotation.Methods in io.helidon.codegen that return types with arguments of type AnnotationModifier 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.Methods in io.helidon.codegen with parameters of type AnnotationModifier 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
Methods in io.helidon.codegen.classmodel that return AnnotationModifier and TypeMethodDescriptionAnnotation.toTypesAnnotation()
Convert class model annotation to Helidon Common Types annotation.Methods in io.helidon.codegen.classmodel with parameters of type AnnotationModifier 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.static Annotation
Annotation.create
(Annotation annotation) Create a class model annotation from common types annotation. -
Uses of Annotation in io.helidon.codegen.spi
Methods in io.helidon.codegen.spi that return AnnotationModifier and TypeMethodDescriptionGeneratedAnnotationProvider.create
(TypeName generator, TypeName trigger, TypeName generatedType, String versionId, String comments) Create a generated annotation.Methods in io.helidon.codegen.spi that return types with arguments of type AnnotationModifier and TypeMethodDescriptionAnnotationMapper.mapAnnotation
(CodegenContext ctx, Annotation original, ElementKind elementKind) Map an annotation to a set of new annotations.Methods in io.helidon.codegen.spi with parameters of type AnnotationModifier 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
Classes in io.helidon.common.types with type parameters of type AnnotationModifier and TypeClassDescriptionstatic class
Annotation.BuilderBase<BUILDER extends Annotation.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends Annotation> Fluent API builder base forAnnotation
.Classes in io.helidon.common.types that implement AnnotationModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Fields in io.helidon.common.types declared as AnnotationModifier and TypeFieldDescriptionstatic final Annotation
Annotations.DEPRECATED
Deprecated annotation.static final Annotation
Annotations.OVERRIDE
Override annotation.Methods in io.helidon.common.types with type parameters of type AnnotationModifier 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.Methods in io.helidon.common.types that return AnnotationModifier 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.Methods in io.helidon.common.types that return types with arguments of type AnnotationModifier 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 byTypedElementInfoBlueprint.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()
Annotation.BuilderBase.AnnotationImpl.metaAnnotations()
Annotation.BuilderBase.metaAnnotations()
A list of inherited annotations (from the whole hierarchy).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()
Methods in io.helidon.common.types with parameters of type AnnotationModifier 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.Annotation.BuilderBase.addMetaAnnotation
(Annotation metaAnnotation) A list of inherited annotations (from the whole hierarchy).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.Method parameters in io.helidon.common.types with type arguments of type AnnotationModifier 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 byTypedElementInfoBlueprint.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.Annotation.BuilderBase.addMetaAnnotations
(List<? extends Annotation> metaAnnotations) A list of inherited annotations (from the whole hierarchy).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 byTypedElementInfoBlueprint.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.Annotation.BuilderBase.metaAnnotations
(List<? extends Annotation> metaAnnotations) A list of inherited annotations (from the whole hierarchy).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. -
Uses of Annotation in io.helidon.metadata.reflection
Methods in io.helidon.metadata.reflection that return AnnotationModifier and TypeMethodDescriptionstatic Annotation
AnnotationFactory.create
(Annotation annotation) Create a Helidon annotation from Java annotation instance.Methods in io.helidon.metadata.reflection that return types with arguments of type AnnotationModifier and TypeMethodDescriptionstatic List
<Annotation> AnnotationFactory.create
(AnnotatedElement annotated) Create Helidon annotations from Java annotated element (method, field, class).Methods in io.helidon.metadata.reflection with parameters of type AnnotationModifier and TypeMethodDescriptionstatic <T extends Annotation>
Optional<T> AnnotationFactory.synthesize
(Annotation annotation) Creates an instance of the provided annotation using reflection (and proxying). -
Uses of Annotation in io.helidon.service.registry
Subinterfaces of Annotation in io.helidon.service.registryModifier and TypeInterfaceDescriptioninterface
Represents a qualifier annotation (a specific case of annotations, annotated withService.Qualifier
).(package private) interface
io.helidon.service.registry.QualifierBlueprint
Represents a qualifier annotation (a specific case of annotations, annotated withService.Qualifier
).Classes in io.helidon.service.registry that implement AnnotationModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Methods in io.helidon.service.registry that return types with arguments of type AnnotationModifier and TypeMethodDescriptionDependency.BuilderBase.annotations()
The annotations on this element.Dependency.BuilderBase.DependencyImpl.annotations()
InterceptionContext.BuilderBase.InterceptionContextImpl.typeAnnotations()
InterceptionContext.BuilderBase.typeAnnotations()
Annotations on the enclosing type.Methods in io.helidon.service.registry with parameters of type AnnotationModifier and TypeMethodDescriptionDependency.BuilderBase.addAnnotation
(Annotation annotation) The annotations on this element.static Qualifier
Qualifier.create
(Annotation annotation) Creates a qualifier from an annotation.Method parameters in io.helidon.service.registry with type arguments of type AnnotationModifier and TypeMethodDescriptionDependency.BuilderBase.addAnnotations
(Set<? extends Annotation> annotations) The annotations on this element.InterceptionContext.BuilderBase.addTypeAnnotations
(List<? extends Annotation> typeAnnotations) Annotations on the enclosing type.Dependency.BuilderBase.annotations
(Set<? extends Annotation> annotations) The annotations on this element.<T> InterceptionInvoker
<T> InterceptionMetadata.createInvoker
(ServiceInfo descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo element, InterceptionInvoker<T> targetInvoker, Set<Class<? extends Throwable>> checkedExceptions) Create an invoker that handles interception if needed, for constructors.<T> InterceptionInvoker
<T> InterceptionMetadata.createInvoker
(Object serviceInstance, ServiceInfo descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo element, InterceptionInvoker<T> targetInvoker, Set<Class<? extends Throwable>> checkedExceptions) Create an invoker that handles interception if needed.InterceptionContext.BuilderBase.typeAnnotations
(List<? extends Annotation> typeAnnotations) Annotations on the enclosing type.