protected static class AnnotationDescription.AnnotationInvocationHandler.MissingValue extends AnnotationValue.Loaded.AbstractBase<java.lang.Void> implements AnnotationValue<java.lang.Void,java.lang.Void>
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends java.lang.annotation.Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends java.lang.Enum<U>>, AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher
AnnotationValue.Loaded.AbstractBase<W>, AnnotationValue.Loaded.State
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType
The annotation type.
|
private java.lang.String |
property
The name of the property without an annotation value.
|
UNDEFINED
Modifier | Constructor and Description |
---|---|
protected |
MissingValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
java.lang.String property)
Creates a new representation for a missing annotation property.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue.Loaded.State |
getState()
Returns the state of the represented loaded annotation value.
|
AnnotationValue.Loaded<java.lang.Void> |
load(java.lang.ClassLoader classLoader)
Returns the loaded value of this annotation.
|
AnnotationValue.Loaded<java.lang.Void> |
loadSilent(java.lang.ClassLoader classLoader)
Returns the loaded value of this annotation without throwing a checked exception.
|
protected static AnnotationValue<?,?> |
of(java.lang.reflect.Method method)
Creates a missing value for the supplied annotation property.
|
boolean |
represents(java.lang.Object value)
Verifies if this loaded value represents the supplied loaded value.
|
java.lang.Void |
resolve()
Resolves the unloaded value of this annotation.
|
resolve
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolve
private final java.lang.Class<? extends java.lang.annotation.Annotation> annotationType
private final java.lang.String property
protected MissingValue(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.String property)
annotationType
- The annotation type.property
- The name of the property without an annotation value.protected static AnnotationValue<?,?> of(java.lang.reflect.Method method)
method
- A method representing an annotation property.public AnnotationValue.Loaded.State getState()
getState
in interface AnnotationValue.Loaded<java.lang.Void>
public boolean represents(java.lang.Object value)
represents
in interface AnnotationValue.Loaded<java.lang.Void>
value
- A loaded annotation value.true
if the supplied annotation value is represented by this annotation value.public AnnotationValue.Loaded<java.lang.Void> load(java.lang.ClassLoader classLoader)
load
in interface AnnotationValue<java.lang.Void,java.lang.Void>
classLoader
- The class loader for loading this value.public AnnotationValue.Loaded<java.lang.Void> loadSilent(java.lang.ClassLoader classLoader)
loadSilent
in interface AnnotationValue<java.lang.Void,java.lang.Void>
classLoader
- The class loader for loading this value.public java.lang.Void resolve()
resolve
in interface AnnotationValue<java.lang.Void,java.lang.Void>
resolve
in interface AnnotationValue.Loaded<java.lang.Void>