public static class AnnotationValue.ForAnnotationDescription.IncompatibleRuntimeType extends AnnotationValue.Loaded.AbstractBase<Annotation>
Represents an annotation value which was attempted to ba loaded by a type that does not represent an annotation value.
Note: Neither of Object.hashCode()
, Object.toString()
and
Object.equals(Object)
are implemented specifically what resembles the way
such exceptional states are represented in the Open JDK's annotation implementations.
AnnotationValue.Loaded.AbstractBase<W>, AnnotationValue.Loaded.State
Constructor and Description |
---|
IncompatibleRuntimeType(Class<?> incompatibleType)
Creates a new representation for an annotation with an incompatible runtime type.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue.Loaded.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.
|
Annotation |
resolve()
Resolves the value to the actual value of an annotation.
|
resolve
public IncompatibleRuntimeType(Class<?> incompatibleType)
incompatibleType
- The incompatible runtime type which is not an annotation type.public AnnotationValue.Loaded.State getState()
AnnotationValue.Loaded
public Annotation resolve()
AnnotationValue.Loaded
public boolean represents(Object value)
AnnotationValue.Loaded
value
- A loaded annotation value.true
if the supplied annotation value is represented by this annotation value.Copyright © 2014–2016. All rights reserved.