public static class AnnotationDescription.AnnotationValue.ForAnnotation.IncompatibleRuntimeType extends Object implements AnnotationDescription.AnnotationValue.Loaded<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.
AnnotationDescription.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 |
---|---|
AnnotationDescription.AnnotationValue.Loaded.State |
getState()
Returns the state of the represented loaded annotation value.
|
Annotation |
resolve()
Resolves the value to the actual value of an annotation.
|
public IncompatibleRuntimeType(Class<?> incompatibleType)
incompatibleType
- The incompatible runtime type which is not an annotation type.public AnnotationDescription.AnnotationValue.Loaded.State getState()
AnnotationDescription.AnnotationValue.Loaded
getState
in interface AnnotationDescription.AnnotationValue.Loaded<Annotation>
public Annotation resolve()
AnnotationDescription.AnnotationValue.Loaded
resolve
in interface AnnotationDescription.AnnotationValue.Loaded<Annotation>
Copyright © 2014–2016. All rights reserved.