U
- The type of the annotation's value when it is not loaded.V
- The type of the annotation's value when it is loaded.public static class AnnotationValue.ForIncompatibleType<U,V> extends AnnotationValue.AbstractBase<U,V>
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValue.ForIncompatibleType.Loaded<W>
A description of annotation value for a type that does not fulfil an expectation.
|
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends Enum<U>>, AnnotationValue.ForIncompatibleType<U,V>, AnnotationValue.ForMismatchedType<U,V>, AnnotationValue.ForMissingType<U,V>, AnnotationValue.ForMissingValue<U,V>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.RenderingDispatcher, AnnotationValue.State
UNDEFINED
Constructor and Description |
---|
ForIncompatibleType(TypeDescription typeDescription)
Creates a new description for an annotation value that does not fulfil expectations.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue<U,V> |
filter(MethodDescription.InDefinedShape property,
TypeDefinition typeDefinition)
Filters this annotation value as a valid value of the provided property.
|
AnnotationValue.State |
getState()
Returns the state of the represented annotation value.
|
AnnotationValue.Loaded<V> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
U |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
filter, resolve
public ForIncompatibleType(TypeDescription typeDescription)
typeDescription
- A description of the type that does not fulfil the expectations.public AnnotationValue.State getState()
public AnnotationValue<U,V> filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)
property
- The property to filter against.typeDefinition
- The expected type.public U resolve()
public AnnotationValue.Loaded<V> load(ClassLoader classLoader)
classLoader
- The class loader for loading this value.Copyright © 2014–2020. All rights reserved.