protected static class TypePool.AbstractBase.RawEnumerationValue extends AnnotationValue.AbstractBase<EnumerationDescription,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 Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends Enum<U>>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher
UNDEFINED
Constructor and Description |
---|
RawEnumerationValue(TypePool typePool,
String descriptor,
String value)
Creates a new enumeration value representation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
AnnotationValue.Loaded<Enum<?>> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
EnumerationDescription |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
loadSilent, resolve
public RawEnumerationValue(TypePool typePool, String descriptor, 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<Enum<?>> load(ClassLoader classLoader) throws ClassNotFoundException
classLoader
- The class loader for loading this value.ClassNotFoundException
- If a type that represents a loaded value cannot be found.Copyright © 2014–2019. All rights reserved.