Modifier and Type | Method and Description |
---|---|
AnnotationInstance |
MethodInfo.annotation(DotName name)
Retrieves an annotation instance declared on this method, it parameters, or any type within the signature
of the method, by the name of the annotation.
|
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Map<DotName,List<AnnotationInstance>> |
ClassInfo.annotations()
Returns a map indexed by annotation name, with a value list of annotation instances.
|
List<AnnotationInstance> |
FieldInfo.annotations()
Returns the list of annotation instances declared on this field.
|
List<AnnotationInstance> |
Type.annotations()
Returns the list of annotations declared on this type's usage.
|
List<AnnotationInstance> |
MethodInfo.annotations()
Returns the annotation instances declared on this method.
|
Collection<AnnotationInstance> |
ClassInfo.classAnnotations()
Returns a list of all annotations directly declared on this class.
|
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.
|
List<AnnotationInstance> |
Index.getAnnotations(DotName annotationName)
Obtains a list of instances for the specified annotation.
|
Modifier and Type | Method and Description |
---|---|
static AnnotationValue |
AnnotationValue.createNestedAnnotationValue(String name,
AnnotationInstance instance) |
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.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.