Package net.bytebuddy.asm
Annotation Type Advice.SelfCallHandle
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public static @interface Advice.SelfCallHandleIndicates that the annotated parameter should load a
java.lang.invoke.MethodHandlethat represents an invocation of the current method. If the current method is virtual, it is bound to the current instance such that the virtual hierarchy is avoided. This annotation can only be used on methods, not constructors.Important: Don't confuse this annotation with
MemberSubstitution.SelfCallHandle. This annotation should be used only in combination withAdvice.- See Also:
Advice,Advice.OnMethodEnter,Advice.OnMethodExit
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanboundDetermines if the method is bound to the arguments and instance of the current invocation.
-