U - The type of the Class that is described.public static class AnnotationValue.ForTypeDescription<U extends Class<U>> extends AnnotationValue.AbstractBase<TypeDescription,U>
Class as a value of an annotation.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AnnotationValue.ForTypeDescription.Loaded<U extends Class<U>>
A loaded annotation value for a given type.
|
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.RenderingDispatcherUNDEFINED| Modifier | Constructor and Description |
|---|---|
protected |
ForTypeDescription(TypeDescription typeDescription)
Creates a new annotation value that represents a type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
AnnotationValue.Loaded<U> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
static <V extends Class<V>> |
of(TypeDescription typeDescription)
Creates an annotation value for representing the given type.
|
TypeDescription |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
resolveprotected ForTypeDescription(TypeDescription typeDescription)
typeDescription - The represented type.public static <V extends Class<V>> AnnotationValue<TypeDescription,V> of(TypeDescription typeDescription)
V - The represented type.typeDescription - The type to represent.public TypeDescription resolve()
AnnotationValuepublic AnnotationValue.Loaded<U> load(ClassLoader classLoader) throws ClassNotFoundException
AnnotationValueclassLoader - 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.