Class AnnotationValue.ForMismatchedType.Loaded<W>
- java.lang.Object
-
- net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase<Z>
-
- net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<W>
-
- net.bytebuddy.description.annotation.AnnotationValue.ForMismatchedType.Loaded<W>
-
- Type Parameters:
W
- The type of the annotation's expected value.
- All Implemented Interfaces:
AnnotationValue.Loaded<W>
- Enclosing class:
- AnnotationValue.ForMismatchedType<U,V>
public static class AnnotationValue.ForMismatchedType.Loaded<W> extends AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<W>
Describes an annotation value for a property that is not assignable to it.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase
AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<Z>
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue.Loaded
AnnotationValue.Loaded.AbstractBase<W>
-
-
Constructor Summary
Constructors Constructor Description Loaded(java.lang.reflect.Method property, java.lang.String value)
Creates a new loaded version of a property with an incompatible type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description W
resolve()
Resolves the value to the actual value of an annotation.-
Methods inherited from class net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty
getState, represents
-
Methods inherited from class net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase
resolve
-
-
-
-
Constructor Detail
-
Loaded
public Loaded(java.lang.reflect.Method property, java.lang.String value)
Creates a new loaded version of a property with an incompatible type.- Parameters:
property
- The annotation property that is not well-defined.value
- A value description of the incompatible property ornull
.
-
-
Method Detail
-
resolve
public W resolve()
Resolves the value to the actual value of an annotation. Calling this method might throw a runtime exception if this value is either not defined or not resolved.- Returns:
- The actual annotation value represented by this instance.
-
-