protected static class Advice.DynamicValue.ForFixedValue.OfAnnotationProperty extends Advice.DynamicValue.ForFixedValue<Annotation>
Advice.DynamicValue.ForFixedValue.OfAnnotationProperty, Advice.DynamicValue.ForFixedValue.OfConstant
Advice.DynamicValue.ForFieldValue, Advice.DynamicValue.ForFixedValue<S extends Annotation>, Advice.DynamicValue.ForParameterValue, Advice.DynamicValue.ForSerializedValue
Modifier | Constructor and Description |
---|---|
protected |
OfAnnotationProperty(MethodDescription.InDefinedShape property)
Creates a new fixed value binding for an annotation property.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
doResolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Annotation> annotation,
Assigner assigner,
boolean initialized)
Resolves a constant value that is mapped to a parameter that is annotated with a custom bound annotation.
|
boolean |
equals(Object object) |
int |
hashCode() |
protected static <T extends Annotation> |
of(Class<? extends T> type,
String property)
Resolves a fixed value for an annotation property.
|
String |
toString() |
resolve
protected OfAnnotationProperty(MethodDescription.InDefinedShape property)
property
- The annotation property to bind.protected static <T extends Annotation> Advice.DynamicValue<T> of(Class<? extends T> type, String property)
T
- The annotation type.type
- The annotation type.property
- The name of the property.protected Object doResolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<Annotation> annotation, Assigner assigner, boolean initialized)
Advice.DynamicValue.ForFixedValue
doResolve
in class Advice.DynamicValue.ForFixedValue<Annotation>
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method onto which this advice is applied.target
- The target parameter that is bound.annotation
- The annotation that triggered this binding.assigner
- The assigner to use.initialized
- true
if the method is initialized when the value is bound, i.e. that the value is not
supplied to a constructor before the super constructor was invoked.Copyright © 2014–2017. All rights reserved.