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.ForMissingType<U,V> extends AnnotationValue.AbstractBase<U,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationValue.ForMissingType.Loaded<U>
Represents a missing type during an annotation's resolution.
|
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.Sort, AnnotationValue.StateUNDEFINED| Constructor and Description |
|---|
ForMissingType(String typeName)
Creates a new annotation value for a type that cannot be loaded.
|
| 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.Sort |
getSort()
Returns the property type of the annotation value.
|
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, resolvepublic ForMissingType(String typeName)
typeName - The type's binary name.public AnnotationValue.State getState()
public AnnotationValue.Sort getSort()
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(@MaybeNull ClassLoader classLoader)
classLoader - The class loader for loading this value or null for using the boot loader.Copyright © 2014–2025. All rights reserved.