Top Description Inners Fields Methods
net.bytebuddy.description.annotation

public Interface AnnotationValue<T, S>

Known Direct Implementers
net.bytebuddy.description.annotation.AnnotationValue.AbstractBase
Type Parameters
<T>
The represented value's unloaded type.
<S>
The represented value's loaded type.
Imports
edu.umd.cs.findbugs.annotations.SuppressFBWarnings, net.bytebuddy.ClassFileVersion, net.bytebuddy.build.CachedReturnPlugin, net.bytebuddy.description.enumeration.EnumerationDescription, net.bytebuddy.description.method.MethodDescription, net.bytebuddy.description.type.TypeDefinition, .TypeDescription, net.bytebuddy.utility.nullability.AlwaysNull, .MaybeNull, java.lang.annotation.Annotation, .AnnotationTypeMismatchException, .IncompleteAnnotationException, java.lang.reflect.Array, .Method, java.util.*

Representation of an unloaded annotation value where all values represent either: The represented values are not necessarily resolvable, i.e. can contain non-available types, unknown enumeration constants or inconsistent annotations.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
AnnotationValue.AbstractBase<
The represented unloaded type.
U
,
The represented loaded type.
V
>

An abstract base implementation of an unloaded annotation value.

public static class
AnnotationValue.ForAnnotationDescription<
The type of the annotation.
U extends Annotation
>

A description of an java.lang.annotation.Annotation as a value of another annotation.

public static class
AnnotationValue.ForConstant<
The type where primitive values are represented by their boxed type.
U
>

Represents a primitive value, a java.lang.String or an array of the latter types.

public static class
AnnotationValue.ForDescriptionArray<
The array type of the annotation's value when it is not loaded.
U
,
The array type of the annotation's value when it is loaded.
V
>

Describes a complex array that is the value of an annotation.

public static class
AnnotationValue.ForEnumerationDescription<
The type of the enumeration.
U extends Enum<U>
>

A description of an java.lang.Enum as a value of an annotation.

public static class
AnnotationValue.ForIncompatibleType<
The type of the annotation's value when it is not loaded.
U
,
The type of the annotation's value when it is loaded.
V
>

Represents an annotation value where its declared type does not fulfil an expectation.

public static class
AnnotationValue.ForMismatchedType<
The type of the annotation's value when it is not loaded.
U
,
The type of the annotation's value when it is loaded.
V
>

Describes an annotation value that does not match the annotation' type for a property.

public static class
AnnotationValue.ForMissingType<
The type of the annotation's value when it is not loaded.
U
,
The type of the annotation's value when it is loaded.
V
>

An annotation value for a type that could not be loaded.

public static class
AnnotationValue.ForMissingValue<
The type of the annotation's value when it is not loaded.
U
,
The type of the annotation's value when it is loaded.
V
>

Represents a missing annotation property which is not represented by a default value.

public static class
AnnotationValue.ForTypeDescription<
The type of the java.lang.Class that is described.
U extends Class<U>
>

A description of a java.lang.Class as a value of an annotation.

public static interface
AnnotationValue.Loaded<
The represented value's type.
U
>

A loaded variant of an AnnotationValue.

public static enum
AnnotationValue.RenderingDispatcher

A rendering dispatcher is responsible for resolving annotation values to String representations.

public static enum
AnnotationValue.Sort

Represents the sort of an AnnotationValue.

public static enum
AnnotationValue.State

Represents the state of an AnnotationValue.

Field Summary

Modifier and TypeField and Description
public static final AnnotationValue<?, ?>
UNDEFINED

An undefined annotation value.

Method Summary

Modifier and TypeMethod and Description
public AnnotationValue<T, S>

Returns:

This annotation value or a new annotation value that describes why this value is not a valid value for the supplied property.
filter
(MethodDescription.InDefinedShape
The property to filter against.
property
)

Filters this annotation value as a valid value of the provided property.

public AnnotationValue<T, S>

Returns:

This annotation value or a new annotation value that describes why this value is not a valid value for the supplied property.
filter
(MethodDescription.InDefinedShape
The property to filter against.
property
,
TypeDefinition
The expected type.
typeDefinition
)

Filters this annotation value as a valid value of the provided property.

public AnnotationValue.Sort

Returns:

The property type of the annotation value.
getSort
()

Returns the property type of the annotation value.

public AnnotationValue.State

Returns:

The state represented by this instance.
getState
()

Returns the state of the represented annotation value.

public AnnotationValue.Loaded<S>

Returns:

The loaded value of this annotation.
load
(ClassLoader
The class loader for loading this value or null for using the boot loader.
classLoader
)

Returns the loaded value of this annotation.

public T

Returns:

The unloaded value of this annotation.
resolve
()

Resolves the unloaded value of this annotation.

public <
The annotation value's unloaded type.
W
>
W

Returns:

The unloaded value of this annotation.
resolve
(Class<? extends W>
The annotation value's unloaded type.
type
)

Resolves the unloaded value of this annotation.