Modifier and Type | Field and Description |
---|---|
private AnnotationInstance |
Indexer.TypeAnnotationState.annotation |
private AnnotationInstance[] |
Type.annotations |
private AnnotationInstance[] |
MethodInternal.annotations |
private AnnotationInstance[] |
FieldInternal.annotations |
private AnnotationInstance[] |
IndexReaderV2.annotationTable |
private static AnnotationInstance[] |
Type.EMPTY_ANNOTATIONS |
(package private) static AnnotationInstance[] |
AnnotationInstance.EMPTY_ARRAY |
private AnnotationInstance |
AnnotationValue.NestedAnnotation.value |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<DotName,java.util.List<AnnotationInstance>> |
Index.annotations |
private java.util.Map<DotName,java.util.List<AnnotationInstance>> |
ClassInfo.annotations |
private IndexWriterV2.ReferenceTable<AnnotationInstance> |
IndexWriterV2.annotationTable |
private java.util.HashMap<DotName,java.util.List<AnnotationInstance>> |
Indexer.classAnnotations |
private java.util.ArrayList<AnnotationInstance> |
Indexer.elementAnnotations |
private static java.util.List<AnnotationInstance> |
Index.EMPTY_ANNOTATION_LIST |
private java.util.Map<?,java.util.List<AnnotationInstance>> |
AnnotationTargetFilterCollection.map |
private java.util.Map<DotName,java.util.List<AnnotationInstance>> |
Indexer.masterAnnotations |
private java.util.HashMap<DotName,java.util.List<AnnotationInstance>> |
IndexReaderV1.masterAnnotations |
Modifier and Type | Method and Description |
---|---|
AnnotationInstance |
Type.annotation(DotName name) |
(package private) AnnotationInstance |
MethodInternal.annotation(DotName name) |
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.
|
(package private) AnnotationInstance |
FieldInternal.annotation(DotName name) |
AnnotationInstance |
FieldInfo.annotation(DotName name)
Retrieves an annotation instance declared on this field.
|
(package private) AnnotationInstance[] |
Type.annotationArray() |
(package private) AnnotationInstance[] |
MethodInternal.annotationArray() |
(package private) AnnotationInstance[] |
FieldInternal.annotationArray() |
AnnotationInstance |
AnnotationValue.asNested()
Returns a nested annotation represented by this value.
|
AnnotationInstance |
AnnotationValue.NestedAnnotation.asNested() |
AnnotationInstance[] |
AnnotationValue.asNestedArray()
Returns an array of nested annotations representing the underlying annotation array value.
|
AnnotationInstance[] |
AnnotationValue.ArrayValue.asNestedArray() |
AnnotationInstance |
ClassInfo.classAnnotation(DotName name)
Returns the annotation with the specified name directly declared on this class.
|
static AnnotationInstance |
AnnotationInstance.create(DotName name,
AnnotationTarget target,
AnnotationValue[] values)
Construct a new mock annotation instance.
|
static AnnotationInstance |
AnnotationInstance.create(DotName name,
AnnotationTarget target,
java.util.List<AnnotationValue> values)
Construct a new mock annotation instance.
|
private AnnotationInstance |
Indexer.processAnnotation(java.io.DataInputStream data,
AnnotationTarget target) |
private AnnotationInstance |
IndexReaderV2.readAnnotationEntry(PackedDataInputStream stream,
AnnotationTarget caller) |
private AnnotationInstance[] |
IndexReaderV2.readAnnotations(PackedDataInputStream stream,
AnnotationTarget target) |
AnnotationInstance |
AnnotationValue.NestedAnnotation.value() |
Modifier and Type | Method and Description |
---|---|
java.util.List<AnnotationInstance> |
Type.annotations()
Returns the list of annotations declared on this type's usage.
|
(package private) java.util.List<AnnotationInstance> |
MethodInternal.annotations() |
java.util.List<AnnotationInstance> |
MethodInfo.annotations()
Returns the annotation instances declared on this method.
|
(package private) java.util.List<AnnotationInstance> |
FieldInternal.annotations() |
java.util.List<AnnotationInstance> |
FieldInfo.annotations()
Returns the list of annotation instances declared on this field.
|
java.util.Map<DotName,java.util.List<AnnotationInstance>> |
ClassInfo.annotations()
Returns a map indexed by annotation name, with a value list of annotation instances.
|
java.util.Collection<AnnotationInstance> |
ClassInfo.classAnnotations()
Returns a list of all annotations directly declared on this class.
|
private java.util.List<AnnotationInstance> |
IndexReaderV2.convertToList(AnnotationInstance[] annotationInstances) |
java.util.Collection<AnnotationInstance> |
IndexView.getAnnotations(DotName annotationName)
Obtains a list of instances for the specified annotation.
|
java.util.List<AnnotationInstance> |
Index.getAnnotations(DotName annotationName)
Obtains a list of instances for the specified annotation.
|
java.util.List<AnnotationInstance> |
CompositeIndex.getAnnotations(DotName annotationName)
Obtains a list of instances for the specified annotation.
|
java.util.Iterator<AnnotationInstance> |
AnnotationTargetFilterCollection.iterator() |
Modifier and Type | Method and Description |
---|---|
(package private) Type |
Type.addAnnotation(AnnotationInstance annotation) |
private void |
IndexWriterV2.addAnnotation(AnnotationInstance instance) |
int |
AnnotationInstance.InstanceNameComparator.compare(AnnotationInstance instance,
AnnotationInstance instance2) |
private java.util.List<AnnotationInstance> |
IndexReaderV2.convertToList(AnnotationInstance[] annotationInstances) |
(package private) Type |
WildcardType.copyType(AnnotationInstance[] newAnnotations) |
(package private) Type |
VoidType.copyType(AnnotationInstance[] newAnnotations) |
(package private) Type |
UnresolvedTypeVariable.copyType(AnnotationInstance[] newAnnotations) |
(package private) Type |
TypeVariable.copyType(AnnotationInstance[] newAnnotations) |
(package private) abstract Type |
Type.copyType(AnnotationInstance[] newAnnotations) |
(package private) Type |
PrimitiveType.copyType(AnnotationInstance[] newAnnotations) |
(package private) ParameterizedType |
ParameterizedType.copyType(AnnotationInstance[] newAnnotations) |
(package private) Type |
ClassType.copyType(AnnotationInstance[] newAnnotations) |
(package private) Type |
ArrayType.copyType(AnnotationInstance[] newAnnotations) |
static AnnotationValue |
AnnotationValue.createNestedAnnotationValue(java.lang.String name,
AnnotationInstance instance) |
private boolean |
IndexWriterV2.markWritten(AnnotationInstance annotation) |
private int |
IndexWriterV2.positionOf(AnnotationInstance instance) |
private void |
Indexer.recordAnnotation(java.util.Map<DotName,java.util.List<AnnotationInstance>> classAnnotations,
DotName annotation,
AnnotationInstance instance) |
private void |
IndexReaderV1.recordAnnotation(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
DotName annotation,
AnnotationInstance instance) |
private void |
IndexReaderV2.updateAnnotationTargetInfo(AnnotationInstance[] annotations,
ClassInfo clazz) |
private void |
IndexWriterV2.writeAnnotation(PackedDataOutputStream stream,
AnnotationInstance instance) |
private void |
IndexWriterV2.writeReference(PackedDataOutputStream stream,
AnnotationInstance annotation) |
private void |
IndexWriterV2.writeReferenceOrFull(PackedDataOutputStream stream,
AnnotationInstance annotation) |
Modifier and Type | Method and Description |
---|---|
private void |
IndexReaderV2.addToMaster(java.util.Map<DotName,java.util.List<AnnotationInstance>> masterAnnotations,
DotName name,
java.util.List<AnnotationInstance> annotations) |
private void |
IndexReaderV2.addToMaster(java.util.Map<DotName,java.util.List<AnnotationInstance>> masterAnnotations,
DotName name,
java.util.List<AnnotationInstance> annotations) |
static ClassInfo |
ClassInfo.create(DotName name,
DotName superName,
short flags,
DotName[] interfaces,
java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
boolean hasNoArgsConstructor)
Deprecated.
|
static Index |
Index.create(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
java.util.Map<DotName,java.util.List<ClassInfo>> subclasses,
java.util.Map<DotName,java.util.List<ClassInfo>> implementors,
java.util.Map<DotName,ClassInfo> classes)
Constructs a "mock" Index using the passed values.
|
private void |
IndexReaderV1.readAnnotations(PackedDataInputStream stream,
java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
ClassInfo clazz) |
private ClassInfo |
IndexReaderV2.readClassEntry(PackedDataInputStream stream,
java.util.Map<DotName,java.util.List<AnnotationInstance>> masterAnnotations,
int version) |
private void |
Indexer.recordAnnotation(java.util.Map<DotName,java.util.List<AnnotationInstance>> classAnnotations,
DotName annotation,
AnnotationInstance instance) |
private void |
IndexReaderV1.recordAnnotation(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
DotName annotation,
AnnotationInstance instance) |
(package private) void |
MethodInternal.setAnnotations(java.util.List<AnnotationInstance> annotations) |
(package private) void |
MethodInfo.setAnnotations(java.util.List<AnnotationInstance> annotations) |
(package private) void |
FieldInternal.setAnnotations(java.util.List<AnnotationInstance> annotations) |
(package private) void |
FieldInfo.setAnnotations(java.util.List<AnnotationInstance> annotations) |
Constructor and Description |
---|
AnnotationInstance(AnnotationInstance instance,
AnnotationTarget target) |
ArrayType(Type component,
int dimensions,
AnnotationInstance[] annotations) |
ClassType(DotName name,
AnnotationInstance[] annotations) |
FieldInternal(byte[] name,
Type type,
short flags,
AnnotationInstance[] annotations) |
MethodInternal(byte[] name,
byte[][] parameterNames,
Type[] parameters,
Type returnType,
short flags,
Type receiverType,
Type[] typeParameters,
Type[] exceptions,
AnnotationInstance[] annotations,
AnnotationValue defaultValue) |
NestedAnnotation(java.lang.String name,
AnnotationInstance value) |
ParameterizedType(DotName name,
Type[] arguments,
Type owner,
AnnotationInstance[] annotations) |
PrimitiveType(PrimitiveType.Primitive primitive,
AnnotationInstance[] annotations) |
Type(DotName name,
AnnotationInstance[] annotations) |
TypeAnnotationState(TypeTarget target,
AnnotationInstance annotation,
java.util.ArrayList<Indexer.PathElement> pathElements,
boolean genericsRequired) |
TypeVariable(java.lang.String name,
Type[] bounds,
AnnotationInstance[] annotations) |
UnresolvedTypeVariable(java.lang.String name,
AnnotationInstance[] annotations) |
VoidType(AnnotationInstance[] annotations) |
WildcardType(Type bound,
boolean isExtends,
AnnotationInstance[] annotations) |
Constructor and Description |
---|
AnnotationTargetFilterCollection(java.util.Map<?,java.util.List<AnnotationInstance>> map,
java.lang.Class<T> type) |
ClassInfo(DotName name,
Type superClassType,
short flags,
Type[] interfaceTypes,
java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations) |
ClassInfo(DotName name,
Type superClassType,
short flags,
Type[] interfaceTypes,
java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
boolean hasNoArgsConstructor) |
Index(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
java.util.Map<DotName,java.util.List<ClassInfo>> subclasses,
java.util.Map<DotName,java.util.List<ClassInfo>> implementors,
java.util.Map<DotName,ClassInfo> classes) |