protected static class TypePool.AbstractBase.RawAnnotationValue extends AnnotationValue.AbstractBase<AnnotationDescription,Annotation>
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 |
---|
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() |
loadSilent, 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()
public AnnotationValue.Loaded<Annotation> 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.