T
- The represented value's unloaded type.S
- The represented value's loaded type.public interface AnnotationValue<T,S>
String
s or arrays of primitive types or strings.TypeDescription
or an array of such a descriptions.EnumerationDescription
or an array of such a description.AnnotationDescription
or an array of such a description.Modifier and Type | Interface and Description |
---|---|
static class |
AnnotationValue.AbstractBase<U,V>
An abstract base implementation of an unloaded annotation value.
|
static class |
AnnotationValue.ForAnnotationDescription<U extends Annotation>
A description of an
Annotation as a value of another annotation. |
static class |
AnnotationValue.ForConstant<U>
Represents a primitive value, a
String or an array of the latter types. |
static class |
AnnotationValue.ForDescriptionArray<U,V>
Describes a complex array that is the value of an annotation.
|
static class |
AnnotationValue.ForEnumerationDescription<U extends Enum<U>>
A description of an
Enum as a value of an annotation. |
static class |
AnnotationValue.ForIncompatibleType<U,V>
Represents an annotation value where its declared type does not fulfil an expectation.
|
static class |
AnnotationValue.ForMismatchedType<U,V>
Describes an annotation value that does not match the annotation' type for a property.
|
static class |
AnnotationValue.ForMissingType<U,V>
An annotation value for a type that could not be loaded.
|
static class |
AnnotationValue.ForMissingValue<U,V>
Represents a missing annotation property which is not represented by a default value.
|
static class |
AnnotationValue.ForTypeDescription<U extends Class<U>>
A description of a
Class as a value of an annotation. |
static interface |
AnnotationValue.Loaded<U>
A loaded variant of an
AnnotationValue . |
static class |
AnnotationValue.RenderingDispatcher
A rendering dispatcher is responsible for resolving annotation values to
String representations. |
static class |
AnnotationValue.Sort
Represents the sort of an
AnnotationValue . |
static class |
AnnotationValue.State
Represents the state of an
AnnotationValue . |
Modifier and Type | Field and Description |
---|---|
static AnnotationValue<?,?> |
UNDEFINED
An undefined annotation value.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue<T,S> |
filter(MethodDescription.InDefinedShape property)
Filters this annotation value as a valid value of the provided property.
|
AnnotationValue<T,S> |
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.
|
AnnotationValue.Loaded<S> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
T |
resolve()
Resolves the unloaded value of this annotation.
|
<W> W |
resolve(Class<? extends W> type)
Resolves the unloaded value of this annotation.
|
@AlwaysNull static final AnnotationValue<?,?> UNDEFINED
AnnotationValue.State getState()
AnnotationValue.Sort getSort()
AnnotationValue<T,S> filter(MethodDescription.InDefinedShape property)
property
- The property to filter against.AnnotationValue<T,S> filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)
property
- The property to filter against.typeDefinition
- The expected type.T resolve()
<W> W resolve(Class<? extends W> type)
W
- The annotation value's unloaded type.type
- The annotation value's unloaded type.AnnotationValue.Loaded<S> load(@MaybeNull ClassLoader classLoader)
classLoader
- The class loader for loading this value or null
for using the boot loader.Copyright © 2014–2024. All rights reserved.