Class AnnotationValue.ForEnumerationDescription.WithUnknownConstant.Loaded
- java.lang.Object
-
- net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase<Z>
-
- net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<java.lang.Enum<?>>
-
- net.bytebuddy.description.annotation.AnnotationValue.ForEnumerationDescription.WithUnknownConstant.Loaded
-
- All Implemented Interfaces:
AnnotationValue.Loaded<java.lang.Enum<?>>
- Enclosing class:
- AnnotationValue.ForEnumerationDescription.WithUnknownConstant<U extends java.lang.Enum<U>>
public static class AnnotationValue.ForEnumerationDescription.WithUnknownConstant.Loaded extends AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<java.lang.Enum<?>>
Represents a property with an enumeration constant that is not defined by an enumeration type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase
AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<Z>
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue.Loaded
AnnotationValue.Loaded.AbstractBase<W>
-
-
Constructor Summary
Constructors Constructor Description Loaded(java.lang.Class<? extends java.lang.Enum<?>> enumType, java.lang.String value)
Creates a new representation for an unknown enumeration constant of an annotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Enum<?>
resolve()
Resolves the value to the actual value of an annotation.java.lang.String
toString()
-
Methods inherited from class net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty
getState, represents
-
Methods inherited from class net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase
resolve
-
-
-
-
Constructor Detail
-
Loaded
public Loaded(java.lang.Class<? extends java.lang.Enum<?>> enumType, java.lang.String value)
Creates a new representation for an unknown enumeration constant of an annotation.- Parameters:
enumType
- The loaded enumeration type.value
- The value for which no enumeration constant exists at runtime.
-
-
Method Detail
-
resolve
public java.lang.Enum<?> resolve()
Resolves the value to the actual value of an annotation. Calling this method might throw a runtime exception if this value is either not defined or not resolved.- Returns:
- The actual annotation value represented by this instance.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-