U
- The enumerationl type.public static class AnnotationValue.ForEnumerationDescription.WithUnknownConstant<U extends Enum<U>> extends AnnotationValue.AbstractBase<EnumerationDescription,U>
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValue.ForEnumerationDescription.WithUnknownConstant.Loaded
Represents a property with an enumeration constant that is not defined by an enumeration type.
|
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.State
UNDEFINED
Constructor and Description |
---|
WithUnknownConstant(TypeDescription typeDescription,
String value)
Creates a property description for an enumeration value that does not exist for the enumeration type.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue<EnumerationDescription,U> |
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<U> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
EnumerationDescription |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
filter, resolve
public WithUnknownConstant(TypeDescription typeDescription, String value)
typeDescription
- A description of the enumeration type.value
- The enumeration constant value.public AnnotationValue.State getState()
public AnnotationValue.Sort getSort()
public AnnotationValue<EnumerationDescription,U> filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)
property
- The property to filter against.typeDefinition
- The expected type.public EnumerationDescription resolve()
public AnnotationValue.Loaded<U> load(@MaybeNull ClassLoader classLoader)
classLoader
- The class loader for loading this value or null
for using the boot loader.Copyright © 2014–2024. All rights reserved.