Uses of Class
org.jboss.jandex.AnnotationInstance
-
Uses of AnnotationInstance in org.jboss.jandex
Modifier and TypeFieldDescriptionprotected final List<AnnotationInstance>
Type.Builder.annotations
protected final List<AnnotationInstance>
Type.Builder.annotations
protected final List<AnnotationInstance>
Type.Builder.annotations
protected final List<AnnotationInstance>
Type.Builder.annotations
protected final List<AnnotationInstance>
Type.Builder.annotations
Modifier and TypeMethodDescriptiondefault AnnotationInstance
AnnotationTarget.annotation
(Class<? extends Annotation> clazz) Returns the annotation instance of given type declared on this annotation target or any of its nested annotation targets.default AnnotationInstance
AnnotationTarget.annotation
(String name) Returns the annotation instance with given name declared on this annotation target or any of its nested annotation targets.AnnotationTarget.annotation
(DotName name) Returns the annotation instance with given name declared on this annotation target or any of its nested annotation targets.final AnnotationInstance
ClassInfo.annotation
(DotName name) Returns the annotation instance with given name declared on this class, any of its members, or any type within the signature of the class or its members.final AnnotationInstance
FieldInfo.annotation
(DotName name) Returns the annotation instance with given name declared on this field or any type within its signature.final AnnotationInstance
MethodInfo.annotation
(DotName name) Returns the annotation instance with given name declared on this method, any of its parameters or any type within its signature.MethodParameterInfo.annotation
(DotName name) Returns the annotation instance with given name declared on this method parameter or any type within its signature.final AnnotationInstance
ModuleInfo.annotation
(DotName name) final AnnotationInstance
RecordComponentInfo.annotation
(DotName name) Returns the annotation instance with given name declared on this record component or any type within its signature.final AnnotationInstance
Type.annotation
(DotName name) Returns the annotation instance with given name declared on this type usage.TypeTarget.annotation
(DotName name) Returns the annotation instance with given name declared on this type usage.AnnotationValue.asNested()
Returns a nested annotation represented by this value.AnnotationValue.asNestedArray()
Returns an array of nested annotations representing the underlying annotation array value.AnnotationInstanceBuilder.build()
Returns anAnnotationInstance
that includes all annotation members defined by previous method calls on this builder.AnnotationInstanceBuilder.buildWithTarget
(AnnotationTarget target) Returns anAnnotationInstance
that includes all annotation members defined by previous method calls on this builder.final AnnotationInstance
ClassInfo.classAnnotation
(DotName name) Deprecated.static AnnotationInstance
AnnotationInstance.create
(DotName name, boolean visible, AnnotationTarget target, List<AnnotationValue> values) Construct a new mock annotation instance.static AnnotationInstance
AnnotationInstance.create
(DotName name, boolean visible, AnnotationTarget target, AnnotationValue[] values) Construct a new mock annotation instance.static AnnotationInstance
AnnotationInstance.create
(DotName name, AnnotationTarget target, List<AnnotationValue> values) Construct a new mock annotation instance.static AnnotationInstance
AnnotationInstance.create
(DotName name, AnnotationTarget target, AnnotationValue[] values) Construct a new mock annotation instance.default AnnotationInstance
AnnotationTarget.declaredAnnotation
(Class<? extends Annotation> clazz) Returns the annotation instance of given type declared on this annotation target.default AnnotationInstance
AnnotationTarget.declaredAnnotation
(String name) Returns the annotation instance with given name declared on this annotation target.AnnotationTarget.declaredAnnotation
(DotName name) Returns the annotation instance with given name declared on this annotation target.final AnnotationInstance
ClassInfo.declaredAnnotation
(DotName name) Returns the annotation instance with given name declared on this class.final AnnotationInstance
FieldInfo.declaredAnnotation
(DotName name) Returns the annotation instance with given name declared on this field.MethodInfo.declaredAnnotation
(DotName name) Returns the annotation instance with given name declared on this method.MethodParameterInfo.declaredAnnotation
(DotName name) Returns the annotation instance with given name declared on this method parameter.final AnnotationInstance
RecordComponentInfo.declaredAnnotation
(DotName name) Returns the annotation instance with given name declared on this record component.TypeTarget.declaredAnnotation
(DotName name) Returns the annotation instance with given name declared on this type usage.Modifier and TypeMethodDescriptionAnnotationTarget.annotations()
Returns the annotation instances declared on this annotation target and nested annotation targets.default Collection<AnnotationInstance>
AnnotationTarget.annotations
(Class<? extends Annotation> clazz) Returns the annotation instances of given type declared on this annotation target and nested annotation targets.default Collection<AnnotationInstance>
AnnotationTarget.annotations
(String name) Returns the annotation instances with given name declared on this annotation target and nested annotation targets.AnnotationTarget.annotations
(DotName name) Returns the annotation instances with given name declared on this annotation target and nested annotation targets.final List<AnnotationInstance>
ClassInfo.annotations()
Returns the annotation instances declared on this class, any of its members, or any type within the signature of the class or its members.final List<AnnotationInstance>
ClassInfo.annotations
(DotName name) Returns the annotation instances with given name declared on this class, any of its members, or any type within the signature of the class or its members.final List<AnnotationInstance>
FieldInfo.annotations()
Returns the annotation instances declared on this field or any type within its signature.final List<AnnotationInstance>
FieldInfo.annotations
(DotName name) Returns the annotation instances with given name declared on this field or any type within its signature.final List<AnnotationInstance>
MethodInfo.annotations()
Returns the annotation instances declared on this method, any of its parameters or any type within its signature.final List<AnnotationInstance>
MethodInfo.annotations
(DotName name) Returns the annotation instances with given name declared on this method, any of its parameters or any type within its signature.MethodParameterInfo.annotations()
Returns the annotation instances declared on this method parameter or any type within its signature.MethodParameterInfo.annotations
(DotName name) Returns the annotation instances with given name declared on this method parameter or any type within its signature.final Collection<AnnotationInstance>
ModuleInfo.annotations()
final List<AnnotationInstance>
RecordComponentInfo.annotations()
Returns the annotation instances declared on this record component or any type within its signature.final List<AnnotationInstance>
RecordComponentInfo.annotations
(DotName name) Returns the annotation instances with given name declared on this record component or any type within its signature.Type.annotations()
Returns the annotation instances declared on this type usage.TypeTarget.annotations()
Returns the annotation instances declared on this type usage.TypeTarget.annotations
(DotName name) Returns the annotation instances with given name declared on this type usage.final Map<DotName,
List<AnnotationInstance>> ClassInfo.annotations$$bridge()
final Map<DotName,
List<AnnotationInstance>> ClassInfo.annotationsMap()
Returns a map indexed by annotation name, with a value list of annotation instances.default Collection<AnnotationInstance>
AnnotationTarget.annotationsWithRepeatable
(Class<? extends Annotation> clazz, IndexView index) Returns the annotation instances of given type declared on this annotation target and nested annotation targets.default Collection<AnnotationInstance>
AnnotationTarget.annotationsWithRepeatable
(String name, IndexView index) Returns the annotation instances with given name declared on this annotation target and nested annotation targets.AnnotationTarget.annotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this annotation target and nested annotation targets.final List<AnnotationInstance>
ClassInfo.annotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this class, any of its members, or any type within the signature of the class or its members.final List<AnnotationInstance>
FieldInfo.annotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this field or any type within its signature.final List<AnnotationInstance>
MethodInfo.annotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this method, any of its parameters or any type within its signature.MethodParameterInfo.annotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this method parameter or any type within its signature.final List<AnnotationInstance>
ModuleInfo.annotationsWithRepeatable
(DotName name, IndexView index) final List<AnnotationInstance>
RecordComponentInfo.annotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this record component or any type within its signature.final List<AnnotationInstance>
Type.annotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this type usage.TypeTarget.annotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this type usage.final Collection<AnnotationInstance>
ClassInfo.classAnnotations()
Deprecated.final List<AnnotationInstance>
ClassInfo.classAnnotationsWithRepeatable
(DotName name, IndexView index) Deprecated.AnnotationTarget.declaredAnnotations()
Returns the annotation instances declared on this annotation target.final List<AnnotationInstance>
ClassInfo.declaredAnnotations()
Returns the annotation instances declared on this class.final List<AnnotationInstance>
FieldInfo.declaredAnnotations()
Returns the annotation instances declared on this field.MethodInfo.declaredAnnotations()
Returns the annotation instances declared on this method.MethodParameterInfo.declaredAnnotations()
Returns the annotation instances declared on this method parameter.final List<AnnotationInstance>
RecordComponentInfo.declaredAnnotations()
Returns the annotation instances declared on this record component.TypeTarget.declaredAnnotations()
Returns the annotation instances declared on this type usage.default Collection<AnnotationInstance>
AnnotationTarget.declaredAnnotationsWithRepeatable
(Class<? extends Annotation> clazz, IndexView index) Returns the annotation instances of given type declared on this annotation target.default Collection<AnnotationInstance>
AnnotationTarget.declaredAnnotationsWithRepeatable
(String name, IndexView index) Returns the annotation instances with given name declared on this annotation target.AnnotationTarget.declaredAnnotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this annotation target.final List<AnnotationInstance>
ClassInfo.declaredAnnotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this class.final List<AnnotationInstance>
FieldInfo.declaredAnnotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this field.MethodInfo.declaredAnnotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this method.MethodParameterInfo.declaredAnnotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this method parameter.final List<AnnotationInstance>
RecordComponentInfo.declaredAnnotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this record component.TypeTarget.declaredAnnotationsWithRepeatable
(DotName name, IndexView index) Returns the annotation instances with given name declared on this type usage.CompositeIndex.getAnnotations
(DotName annotationName) Obtains a list of instances for the specified annotation.Index.getAnnotations
(DotName annotationName) Obtains a list of instances for the specified annotation.default Collection<AnnotationInstance>
IndexView.getAnnotations
(Class<?> annotationType) Obtains a list of instances for the specified annotation.default Collection<AnnotationInstance>
IndexView.getAnnotations
(String annotationName) Obtains a list of instances for the specified annotation.IndexView.getAnnotations
(DotName annotationName) Obtains a list of instances for the specified annotation.CompositeIndex.getAnnotationsWithRepeatable
(DotName annotationName, IndexView index) Obtains a list of instances for the specified annotation.Index.getAnnotationsWithRepeatable
(DotName annotationName, IndexView index) Obtains a list of instances for the specified annotation.default Collection<AnnotationInstance>
IndexView.getAnnotationsWithRepeatable
(Class<?> annotationType, IndexView index) Obtains a list of instances for the specified annotation.default Collection<AnnotationInstance>
IndexView.getAnnotationsWithRepeatable
(String annotationName, IndexView index) Obtains a list of instances for the specified annotation.IndexView.getAnnotationsWithRepeatable
(DotName annotationName, IndexView index) Obtains a list of instances for the specified annotation.Modifier and TypeMethodDescriptionAnnotationInstanceBuilder.add
(String name, AnnotationInstance value) Adds an annotation-valued annotation member with givenname
.AnnotationInstanceBuilder.add
(String name, AnnotationInstance[] values) Adds an annotation array-valued annotation member with givenname
.static AnnotationValue
AnnotationValue.createNestedAnnotationValue
(String name, AnnotationInstance instance) static Type
Type.createWithAnnotations
(DotName name, Type.Kind kind, AnnotationInstance[] annotations) Creates an instance of specified type with given typeannotations
.boolean
AnnotationInstance.equivalentTo
(AnnotationInstance other) Returns whether this annotation instance is equivalent to theother
annotation instance.AnnotationInstanceBuilder.value
(AnnotationInstance value) Adds an annotation-valued annotation member calledvalue
.AnnotationInstanceBuilder.value
(AnnotationInstance[] values) Adds an annotation array-valued annotation member calledvalue
.Modifier and TypeMethodDescriptionstatic ClassInfo
ClassInfo.create
(DotName name, DotName superName, short flags, DotName[] interfaces, Map<DotName, List<AnnotationInstance>> annotations, boolean hasNoArgsConstructor) Deprecated.static Index
Index.create
(Map<DotName, List<AnnotationInstance>> annotations, Map<DotName, List<ClassInfo>> subclasses, Map<DotName, List<ClassInfo>> subinterfaces, Map<DotName, List<ClassInfo>> implementors, Map<DotName, ClassInfo> classes, Map<DotName, List<ClassInfo>> users) Constructs a "mock" Index using the passed values.static Index
Index.create
(Map<DotName, List<AnnotationInstance>> annotations, Map<DotName, List<ClassInfo>> subclasses, Map<DotName, List<ClassInfo>> implementors, Map<DotName, ClassInfo> classes) Constructs a "mock" Index using the passed values.static Index
Index.create
(Map<DotName, List<AnnotationInstance>> annotations, Map<DotName, List<ClassInfo>> subclasses, Map<DotName, List<ClassInfo>> implementors, Map<DotName, ClassInfo> classes, Map<DotName, List<ClassInfo>> users) Constructs a "mock" Index using the passed values.
ClassInfo.declaredAnnotation(DotName)