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.ForIncompatibleType<U,V>, AnnotationValue.ForMismatchedType<U,V>, AnnotationValue.ForMissingType<U,V>, AnnotationValue.ForMissingValue<U,V>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.RenderingDispatcher, AnnotationValue.State
UNDEFINED
Constructor and Description |
---|
ForTypeDescription(TypeDescription typeDescription)
Creates a new annotation value that represents a type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
AnnotationValue<TypeDescription,U> |
filter(MethodDescription.InDefinedShape property,
TypeDefinition typeDefinition)
Filters this annotation value as a valid value of the provided property.
|
AnnotationValue.State |
getState()
Returns the state of the represented annotation value.
|
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() |
filter, resolve
public 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 AnnotationValue.State getState()
public AnnotationValue<TypeDescription,U> filter(MethodDescription.InDefinedShape property, TypeDefinition typeDefinition)
property
- The property to filter against.typeDefinition
- The expected type.public TypeDescription resolve()
public AnnotationValue.Loaded<U> load(ClassLoader classLoader)
classLoader
- The class loader for loading this value.Copyright © 2014–2020. All rights reserved.