protected static class TypePool.AbstractBase.RawTypeValue extends AnnotationValue.AbstractBase<TypeDescription,java.lang.Class<?>>
Modifier and Type | Class and Description |
---|---|
protected static class |
TypePool.AbstractBase.RawTypeValue.Loaded
Represents a loaded annotation property that represents a type.
|
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.RenderingDispatcher
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The binary name of the type.
|
private static boolean |
NO_INITIALIZATION
A convenience reference indicating that a loaded type should not be initialized.
|
private TypePool |
typePool
The type pool to use for looking up types.
|
UNDEFINED
Modifier | Constructor and Description |
---|---|
protected |
RawTypeValue(TypePool typePool,
org.objectweb.asm.Type type)
Represents a type value of an annotation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
AnnotationValue.Loaded<java.lang.Class<?>> |
load(java.lang.ClassLoader classLoader)
Returns the loaded value of this annotation.
|
TypeDescription |
resolve()
Resolves the unloaded value of this annotation.
|
java.lang.String |
toString() |
loadSilent, resolve
private static final boolean NO_INITIALIZATION
private final TypePool typePool
private final java.lang.String name
protected RawTypeValue(TypePool typePool, org.objectweb.asm.Type type)
typePool
- The type pool to use for looking up types.type
- A type representation of the type that is referenced by the annotation..public TypeDescription resolve()
public AnnotationValue.Loaded<java.lang.Class<?>> 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.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object