U
- The represented value's type.public static interface AnnotationValue.Loaded<U>
AnnotationValue
. While
implementations of this value are required to be processed successfully by a
ClassLoader
they might still be unresolved. Typical errors on loading an annotation
value are:
IncompleteAnnotationException
: An annotation does not define a value
even though no default value for a property is provided.EnumConstantNotPresentException
: An annotation defines an unknown value for
a known enumeration.AnnotationTypeMismatchException
: An annotation property is not
of the expected type.Object.hashCode()
and
Object.toString()
that resemble those used for the annotation values of an actual
Annotation
implementation. Also, instances must implement
Object.equals(Object)
to return true
for other instances of
this interface that represent the same annotation value.Modifier and Type | Interface and Description |
---|---|
static class |
AnnotationValue.Loaded.AbstractBase<W>
An abstract base implementation of a loaded annotation value.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue.State |
getState()
Returns the state of the represented loaded annotation value.
|
boolean |
represents(Object value)
Verifies if this loaded value represents the supplied loaded value.
|
U |
resolve()
Resolves the value to the actual value of an annotation.
|
<V> V |
resolve(Class<? extends V> type)
Resolves the value to the actual value of an annotation.
|
AnnotationValue.State getState()
U resolve()
<V> V resolve(Class<? extends V> type)
V
- The value's loaded type.type
- The value's loaded type.boolean represents(Object value)
value
- A loaded annotation value.true
if the supplied annotation value is represented by this annotation value.Copyright © 2014–2024. All rights reserved.