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.ForMissingValue<U,V> extends AnnotationValue.AbstractBase<U,V>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | AnnotationValue.ForMissingValue.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.Sort, AnnotationValue.StateUNDEFINED| Constructor and Description | 
|---|
| ForMissingValue(TypeDescription typeDescription,
               String property)Creates a new missing annotation value. | 
| 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. | 
filter, resolvepublic ForMissingValue(TypeDescription typeDescription, String property)
typeDescription - The annotation type for which a property is not defined.property - The name of the property without an annotation value.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 AnnotationValue.Loaded<V> load(@MaybeNull ClassLoader classLoader)
classLoader - The class loader for loading this value or null for using the boot loader.public U resolve()
Copyright © 2014–2025. All rights reserved.