protected static class TypePool.AbstractBase.RawAnnotationValue extends AnnotationValue.AbstractBase<AnnotationDescription,java.lang.annotation.Annotation>
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 TypePool.Default.LazyTypeDescription.AnnotationToken |
annotationToken
The annotation token that represents the nested invocation.
|
private TypePool |
typePool
The type pool to use for looking up types.
|
UNDEFINED
Constructor and Description |
---|
RawAnnotationValue(TypePool typePool,
TypePool.Default.LazyTypeDescription.AnnotationToken annotationToken)
Creates a new annotation value for a nested annotation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
AnnotationValue.Loaded<java.lang.annotation.Annotation> |
load(java.lang.ClassLoader classLoader)
Returns the loaded value of this annotation.
|
AnnotationDescription |
resolve()
Resolves the unloaded value of this annotation.
|
java.lang.String |
toString() |
loadSilent, resolve
private final TypePool typePool
private final TypePool.Default.LazyTypeDescription.AnnotationToken annotationToken
public RawAnnotationValue(TypePool typePool, TypePool.Default.LazyTypeDescription.AnnotationToken annotationToken)
typePool
- The type pool to use for looking up types.annotationToken
- The token that represents the annotation.public AnnotationDescription resolve()
public AnnotationValue.Loaded<java.lang.annotation.Annotation> 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