protected static class AnnotationDescription.AnnotationInvocationHandler.MissingValue extends AnnotationValue.Loaded.AbstractBase<Void> implements AnnotationValue<Void,Void>
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends Enum<U>>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher
AnnotationValue.Loaded.AbstractBase<W>, AnnotationValue.Loaded.State
UNDEFINED
Modifier | Constructor and Description |
---|---|
protected |
MissingValue(Class<? extends Annotation> annotationType,
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<Void> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
protected static AnnotationValue<?,?> |
of(Method method)
Creates a missing value for the supplied annotation property.
|
boolean |
represents(Object value)
Verifies if this loaded value represents the supplied loaded value.
|
Void |
resolve()
Resolves the unloaded value of this annotation.
|
resolve
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolve
protected MissingValue(Class<? extends Annotation> annotationType, String property)
annotationType
- The annotation type.property
- The name of the property without an annotation value.protected static AnnotationValue<?,?> of(Method method)
method
- A method representing an annotation property.public AnnotationValue.Loaded.State getState()
AnnotationValue.Loaded
getState
in interface AnnotationValue.Loaded<Void>
public boolean represents(Object value)
AnnotationValue.Loaded
represents
in interface AnnotationValue.Loaded<Void>
value
- A loaded annotation value.true
if the supplied annotation value is represented by this annotation value.public AnnotationValue.Loaded<Void> load(ClassLoader classLoader)
AnnotationValue
load
in interface AnnotationValue<Void,Void>
classLoader
- The class loader for loading this value.public Void resolve()
AnnotationValue
resolve
in interface AnnotationValue<Void,Void>
resolve
in interface AnnotationValue.Loaded<Void>
Copyright © 2014–2016. All rights reserved.