U
- The type of the annotation.public static class AnnotationValue.ForAnnotationDescription<U extends Annotation> extends AnnotationValue.AbstractBase<AnnotationDescription,U>
Annotation
as a value of another annotation.Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValue.ForAnnotationDescription.Loaded<V extends Annotation>
A loaded version of the described annotation.
|
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends Enum<U>>, AnnotationValue.ForIncompatibleType<U,V>, AnnotationValue.ForMismatchedType<U,V>, AnnotationValue.ForMissingType<U,V>, AnnotationValue.ForMissingValue<U,V>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.RenderingDispatcher, AnnotationValue.Sort, AnnotationValue.State
UNDEFINED
Constructor and Description |
---|
ForAnnotationDescription(AnnotationDescription annotationDescription)
Creates a new annotation value for a given annotation description.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
AnnotationValue<AnnotationDescription,U> |
filter(MethodDescription.InDefinedShape property,
TypeDefinition typeDefinition)
Filters this annotation value as a valid value of the provided property.
|
AnnotationValue.Sort |
getSort()
Returns the property type of the annotation value.
|
AnnotationValue.State |
getState()
Returns the state of the represented annotation value.
|
int |
hashCode() |
AnnotationValue.Loaded<U> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
static <V extends Annotation> |
of(TypeDescription annotationType,
Map<String,? extends AnnotationValue<?,?>> annotationValues)
Creates an annotation value instance for describing the given annotation type and values.
|
AnnotationDescription |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
filter, resolve
public ForAnnotationDescription(AnnotationDescription annotationDescription)
annotationDescription
- The annotation description that this value represents.public static <V extends Annotation> AnnotationValue<AnnotationDescription,V> of(TypeDescription annotationType, Map<String,? extends AnnotationValue<?,?>> annotationValues)
V
- The type of the annotation.annotationType
- The annotation type.annotationValues
- The values of the annotation.public AnnotationValue.State getState()
public AnnotationValue.Sort getSort()
public AnnotationValue<AnnotationDescription,U> filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)
property
- The property to filter against.typeDefinition
- The expected type.public AnnotationDescription resolve()
public AnnotationValue.Loaded<U> load(@MaybeNull ClassLoader classLoader)
classLoader
- The class loader for loading this value or null
for using the boot loader.public boolean equals(@MaybeNull Object other)
Copyright © 2014–2024. All rights reserved.