Annotation Interface ThisValue


@Retention(RUNTIME) @Target(PARAMETER) public @interface ThisValue
Assigns the instance that the instrumented method was invoked on to a parameter of a probe method. The probe method can be annotated with Interception, PayloadInterception, SplitInterception or AdditionalInterception. The type of the annotated parameter must be Object or the type given in MethodSpec.className(). The declared type can only be used if it can be resolved by the system class loader.

If the instrumented method is a static method, the argument will be null. If the instrumented method is a constructor, the value will be null for InvocationType.ENTER because the super constructor has not been invoked yet.