U - The type of the enumeration.public static class AnnotationValue.ForEnumerationDescription<U extends Enum<U>> extends AnnotationValue.AbstractBase<EnumerationDescription,U>
Enum as a value of an annotation.| Modifier and Type | Class and Description | 
|---|---|
| static class  | AnnotationValue.ForEnumerationDescription.Loaded<V extends Enum<V>>A loaded representation of an enumeration value. | 
| static class  | AnnotationValue.ForEnumerationDescription.WithUnknownConstant<U extends Enum<U>>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.StateUNDEFINED| Constructor and Description | 
|---|
| ForEnumerationDescription(EnumerationDescription enumerationDescription)Creates a new description of an annotation value for a given enumeration. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object other) | 
| 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. | 
| int | hashCode() | 
| AnnotationValue.Loaded<U> | load(ClassLoader classLoader)Returns the loaded value of this annotation. | 
| static <V extends Enum<V>> | of(EnumerationDescription value)Creates a new annotation value for the given enumeration description. | 
| EnumerationDescription | resolve()Resolves the unloaded value of this annotation. | 
| String | toString() | 
filter, resolvepublic ForEnumerationDescription(EnumerationDescription enumerationDescription)
enumerationDescription - The enumeration that is to be represented.public static <V extends Enum<V>> AnnotationValue<EnumerationDescription,V> of(EnumerationDescription value)
V - The type of the represented enumeration.value - The value to represent.public EnumerationDescription resolve()
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 AnnotationValue.Loaded<U> load(@MaybeNull ClassLoader classLoader)
classLoader - The class loader for loading this value or null for using the boot loader.public boolean equals(@MaybeNull Object other)
Copyright © 2014–2023. All rights reserved.