@Documented @Retention(value=RUNTIME) @Target(value=PARAMETER) public static @interface Advice.FieldValue
Important: Parameters with this option must not be used when from a constructor in combination with
Advice.OnMethodEnter
and a non-static field where the this
reference is not available.
Advice
,
Advice.OnMethodEnter
,
Advice.OnMethodExit
Modifier and Type | Required Element and Description |
---|---|
String |
value
Returns the name of the field.
|
Modifier and Type | Optional Element and Description |
---|---|
Class<?> |
declaringType
Returns the type that declares the field that should be mapped to the annotated parameter.
|
public abstract String value
public abstract Class<?> declaringType
void
, the field is looked up implicitly within the instrumented class's class hierarchy.void
if this type should be determined implicitly.Copyright © 2014–2016. All rights reserved.