protected static class TypePool.AbstractBase.RawAnnotationValue extends Object implements AnnotationDescription.AnnotationValue<AnnotationDescription,Annotation>
AnnotationDescription.AnnotationValue.ForAnnotation<U extends Annotation>, AnnotationDescription.AnnotationValue.ForComplexArray<U,V>, AnnotationDescription.AnnotationValue.ForEnumeration<U extends Enum<U>>, AnnotationDescription.AnnotationValue.ForType<U extends Class<U>>, AnnotationDescription.AnnotationValue.Loaded<U>, AnnotationDescription.AnnotationValue.Trivial<U>| Constructor and Description |
|---|
RawAnnotationValue(TypePool typePool,
TypePool.LazyTypeDescription.AnnotationToken annotationToken)
Creates a new annotation value for a nested annotation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
AnnotationDescription.AnnotationValue.Loaded<Annotation> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
AnnotationDescription |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
public RawAnnotationValue(TypePool typePool, TypePool.LazyTypeDescription.AnnotationToken annotationToken)
typePool - The type pool to use for looking up types.annotationToken - The token that represents the annotation.public AnnotationDescription resolve()
AnnotationDescription.AnnotationValueresolve in interface AnnotationDescription.AnnotationValue<AnnotationDescription,Annotation>public AnnotationDescription.AnnotationValue.Loaded<Annotation> load(ClassLoader classLoader) throws ClassNotFoundException
AnnotationDescription.AnnotationValueload in interface AnnotationDescription.AnnotationValue<AnnotationDescription,Annotation>classLoader - The class loader for loading this value.ClassNotFoundException - If a type that represents a loaded value cannot be found.Copyright © 2014–2015. All rights reserved.