protected static class TypePool.AbstractBase.RawAnnotationValue extends AnnotationValue.AbstractBase<AnnotationDescription,Annotation>
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotation<U extends Annotation>, AnnotationValue.ForComplexArray<U,V>, AnnotationValue.ForConstant<U>, AnnotationValue.ForEnumeration<U extends Enum<U>>, AnnotationValue.ForType<U extends Class<U>>, AnnotationValue.Loaded<U>
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(Object other) |
int |
hashCode() |
AnnotationValue.Loaded<Annotation> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
AnnotationDescription |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
resolve
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()
AnnotationValue
public AnnotationValue.Loaded<Annotation> load(ClassLoader classLoader) throws ClassNotFoundException
AnnotationValue
classLoader
- The class loader for loading this value.ClassNotFoundException
- If a type that represents a loaded value cannot be found.Copyright © 2014–2016. All rights reserved.