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.ForMismatchedType<U,V> extends AnnotationValue.AbstractBase<U,V>
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValue.ForMismatchedType.Loaded<W>
Describes an annotation value for a property that is not assignable to it.
|
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 |
---|
ForMismatchedType(MethodDescription.InDefinedShape property,
String value)
Creates an annotation description for a mismatched typeName.
|
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 ForMismatchedType(MethodDescription.InDefinedShape property, String value)
property
- The property that does not defines a non-matching value.value
- A value description of the property.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.