| Modifier and Type | Method and Description |
|---|---|
default 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.
|
AnnotationInstance |
MethodParameterInfo.annotation(DotName name)
Returns the annotation instance with given name declared on this method parameter or any type within
its signature.
|
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.
|
AnnotationInstance |
RecordComponentInfo.annotation(DotName name)
Returns the annotation instance with given name declared on this record component or any type within its signature.
|
AnnotationInstance |
TypeTarget.annotation(DotName name)
Returns the annotation instance with given name declared on this type usage.
|
AnnotationInstance |
AnnotationTarget.annotation(DotName name)
Returns the annotation instance with given name declared on this annotation target or any of its nested
annotation targets.
|
AnnotationInstance |
Type.annotation(DotName name)
Returns the annotation instance with given name declared on this type usage.
|
AnnotationInstance |
FieldInfo.annotation(DotName name)
Returns the annotation instance with given name declared on this field or any type within its signature.
|
AnnotationInstance |
ModuleInfo.annotation(DotName name) |
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.
|
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.
|
AnnotationInstance |
AnnotationValue.asNested()
Returns a nested annotation represented by this value.
|
AnnotationInstance[] |
AnnotationValue.asNestedArray()
Returns an array of nested annotations representing the underlying annotation array value.
|
AnnotationInstance |
AnnotationInstanceBuilder.build()
Returns an
AnnotationInstance that includes all annotation members defined by
previous method calls on this builder. |
AnnotationInstance |
AnnotationInstanceBuilder.buildWithTarget(AnnotationTarget target)
Returns an
AnnotationInstance that includes all annotation members defined by
previous method calls on this builder. |
AnnotationInstance |
ClassInfo.classAnnotation(DotName name)
Deprecated.
|
static AnnotationInstance |
AnnotationInstance.create(DotName name,
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,
boolean visible,
AnnotationTarget target,
AnnotationValue[] values)
Construct a new mock annotation instance.
|
static AnnotationInstance |
AnnotationInstance.create(DotName name,
boolean visible,
AnnotationTarget target,
List<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.
|
AnnotationInstance |
MethodParameterInfo.declaredAnnotation(DotName name)
Returns the annotation instance with given name declared on this method parameter.
|
AnnotationInstance |
MethodInfo.declaredAnnotation(DotName name)
Returns the annotation instance with given name declared on this method.
|
AnnotationInstance |
RecordComponentInfo.declaredAnnotation(DotName name)
Returns the annotation instance with given name declared on this record component.
|
AnnotationInstance |
TypeTarget.declaredAnnotation(DotName name)
Returns the annotation instance with given name declared on this type usage.
|
AnnotationInstance |
AnnotationTarget.declaredAnnotation(DotName name)
Returns the annotation instance with given name declared on this annotation target.
|
AnnotationInstance |
FieldInfo.declaredAnnotation(DotName name)
Returns the annotation instance with given name declared on this field.
|
AnnotationInstance |
ClassInfo.declaredAnnotation(DotName name)
Returns the annotation instance with given name declared on this class.
|
default AnnotationInstance |
AnnotationTarget.declaredAnnotation(String name)
Returns the annotation instance with given name declared on this annotation target.
|
| Modifier and Type | Method and Description |
|---|---|
List<AnnotationInstance> |
MethodParameterInfo.annotations()
Returns the annotation instances declared on this method parameter or any type within its signature.
|
List<AnnotationInstance> |
MethodInfo.annotations()
Returns the annotation instances declared on this method, any of its parameters or any type
within its signature.
|
List<AnnotationInstance> |
RecordComponentInfo.annotations()
Returns the annotation instances declared on this record component or any type within its signature.
|
List<AnnotationInstance> |
TypeTarget.annotations()
Returns the annotation instances declared on this type usage.
|
Collection<AnnotationInstance> |
AnnotationTarget.annotations()
Returns the annotation instances declared on this annotation target and nested annotation targets.
|
List<AnnotationInstance> |
Type.annotations()
Returns the annotation instances declared on this type usage.
|
List<AnnotationInstance> |
FieldInfo.annotations()
Returns the annotation instances declared on this field or any type within its signature.
|
Collection<AnnotationInstance> |
ModuleInfo.annotations() |
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.
|
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.
|
List<AnnotationInstance> |
MethodParameterInfo.annotations(DotName name)
Returns the annotation instances with given name declared on this method parameter or any type within
its signature.
|
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.
|
List<AnnotationInstance> |
RecordComponentInfo.annotations(DotName name)
Returns the annotation instances with given name declared on this record component or any type within its signature.
|
List<AnnotationInstance> |
TypeTarget.annotations(DotName name)
Returns the annotation instances with given name declared on this type usage.
|
Collection<AnnotationInstance> |
AnnotationTarget.annotations(DotName name)
Returns the annotation instances with given name declared on this annotation target and nested annotation targets.
|
List<AnnotationInstance> |
FieldInfo.annotations(DotName name)
Returns the annotation instances with given name declared on this field or any type within its signature.
|
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.
|
default Collection<AnnotationInstance> |
AnnotationTarget.annotations(String name)
Returns the annotation instances with given name declared on this annotation target and nested annotation targets.
|
Map<DotName,List<AnnotationInstance>> |
ClassInfo.annotations$$bridge() |
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.
|
List<AnnotationInstance> |
MethodParameterInfo.annotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this method parameter or any type within
its signature.
|
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.
|
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.
|
List<AnnotationInstance> |
TypeTarget.annotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this type usage.
|
Collection<AnnotationInstance> |
AnnotationTarget.annotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this annotation target and nested annotation targets.
|
List<AnnotationInstance> |
Type.annotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this type usage.
|
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.
|
List<AnnotationInstance> |
ModuleInfo.annotationsWithRepeatable(DotName name,
IndexView index) |
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.
|
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.
|
Collection<AnnotationInstance> |
ClassInfo.classAnnotations()
Deprecated.
|
List<AnnotationInstance> |
ClassInfo.classAnnotationsWithRepeatable(DotName name,
IndexView index)
Deprecated.
|
List<AnnotationInstance> |
MethodParameterInfo.declaredAnnotations()
Returns the annotation instances declared on this method parameter.
|
List<AnnotationInstance> |
MethodInfo.declaredAnnotations()
Returns the annotation instances declared on this method.
|
List<AnnotationInstance> |
RecordComponentInfo.declaredAnnotations()
Returns the annotation instances declared on this record component.
|
List<AnnotationInstance> |
TypeTarget.declaredAnnotations()
Returns the annotation instances declared on this type usage.
|
Collection<AnnotationInstance> |
AnnotationTarget.declaredAnnotations()
Returns the annotation instances declared on this annotation target.
|
List<AnnotationInstance> |
FieldInfo.declaredAnnotations()
Returns the annotation instances declared on this field.
|
List<AnnotationInstance> |
ClassInfo.declaredAnnotations()
Returns the annotation instances declared on this class.
|
default Collection<AnnotationInstance> |
AnnotationTarget.declaredAnnotationsWithRepeatable(Class<? extends Annotation> clazz,
IndexView index)
Returns the annotation instances of given type declared on this annotation target.
|
List<AnnotationInstance> |
MethodParameterInfo.declaredAnnotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this method parameter.
|
List<AnnotationInstance> |
MethodInfo.declaredAnnotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this method.
|
List<AnnotationInstance> |
RecordComponentInfo.declaredAnnotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this record component.
|
List<AnnotationInstance> |
TypeTarget.declaredAnnotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this type usage.
|
Collection<AnnotationInstance> |
AnnotationTarget.declaredAnnotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this annotation target.
|
List<AnnotationInstance> |
FieldInfo.declaredAnnotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this field.
|
List<AnnotationInstance> |
ClassInfo.declaredAnnotationsWithRepeatable(DotName name,
IndexView index)
Returns the annotation instances with given name declared on this class.
|
default Collection<AnnotationInstance> |
AnnotationTarget.declaredAnnotationsWithRepeatable(String name,
IndexView index)
Returns the annotation instances with given name declared on this annotation target.
|
default Collection<AnnotationInstance> |
IndexView.getAnnotations(Class<?> annotationType)
Obtains a list of instances for the specified annotation.
|
List<AnnotationInstance> |
Index.getAnnotations(DotName annotationName)
Obtains a list of instances for the specified annotation.
|
List<AnnotationInstance> |
CompositeIndex.getAnnotations(DotName annotationName)
Obtains a list of instances for the specified annotation.
|
Collection<AnnotationInstance> |
IndexView.getAnnotations(DotName annotationName)
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.
|
default Collection<AnnotationInstance> |
IndexView.getAnnotationsWithRepeatable(Class<?> annotationType,
IndexView index)
Obtains a list of instances for the specified annotation.
|
Collection<AnnotationInstance> |
Index.getAnnotationsWithRepeatable(DotName annotationName,
IndexView index)
Obtains a list of instances for the specified annotation.
|
Collection<AnnotationInstance> |
CompositeIndex.getAnnotationsWithRepeatable(DotName annotationName,
IndexView index)
Obtains a list of instances for the specified annotation.
|
Collection<AnnotationInstance> |
IndexView.getAnnotationsWithRepeatable(DotName annotationName,
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.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.add(String name,
AnnotationInstance value)
Adds an annotation-valued annotation member with given
name. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.add(String name,
AnnotationInstance[] values)
Adds an annotation array-valued annotation member with given
name. |
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 type
annotations. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.value(AnnotationInstance value)
Adds an annotation-valued annotation member called
value. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.value(AnnotationInstance[] values)
Adds an annotation array-valued annotation member called
value. |
| Modifier and Type | Method and Description |
|---|---|
static 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>> 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.
|
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.
|
Copyright © 2018–2022. All rights reserved.