@Documented @Retention(value=RUNTIME) @Target(value=PARAMETER) public static @interface Advice.This
Indicates that the annotated parameter should be mapped to the this
reference of the instrumented method.
Important: Parameters with this option must not be used when from a constructor in combination with
Advice.OnMethodEnter
where the this
reference is not available.
Advice
,
Advice.OnMethodEnter
,
Advice.OnMethodExit
public abstract boolean readOnly
false
, the annotated
type must be equal to the type declaring the instrumented method. If this property is set to true
, the
annotated parameter can be any super type of the instrumented method's declaring type.true
if this parameter is read-only.Copyright © 2014–2016. All rights reserved.