protected static class TypePool.AbstractBase.RawEnumerationValue extends AnnotationValue.AbstractBase<EnumerationDescription,java.lang.Enum<?>>
| Modifier and Type | Class and Description |
|---|---|
protected class |
TypePool.AbstractBase.RawEnumerationValue.LazyEnumerationDescription
An enumeration description where any type references are only resolved on demand.
|
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends java.lang.annotation.Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends java.lang.Enum<U>>, AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
descriptor
The descriptor of the enumeration type.
|
private TypePool |
typePool
The type pool to use for looking up types.
|
private java.lang.String |
value
The name of the enumeration.
|
UNDEFINED| Constructor and Description |
|---|
RawEnumerationValue(TypePool typePool,
java.lang.String descriptor,
java.lang.String value)
Creates a new enumeration value representation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
AnnotationValue.Loaded<java.lang.Enum<?>> |
load(java.lang.ClassLoader classLoader)
Returns the loaded value of this annotation.
|
EnumerationDescription |
resolve()
Resolves the unloaded value of this annotation.
|
java.lang.String |
toString() |
loadSilent, resolveprivate final TypePool typePool
private final java.lang.String descriptor
private final java.lang.String value
public RawEnumerationValue(TypePool typePool, java.lang.String descriptor, java.lang.String value)
typePool - The type pool to use for looking up types.descriptor - The descriptor of the enumeration type.value - The name of the enumeration.public EnumerationDescription resolve()
public AnnotationValue.Loaded<java.lang.Enum<?>> load(java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
classLoader - The class loader for loading this value.java.lang.ClassNotFoundException - If a type that represents a loaded value cannot be found.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object