Package net.bytebuddy.asm
Annotation Type Advice.SelfCallHandle
- Enclosing class:
Advice
Indicates that the annotated parameter should load a java.lang.invoke.MethodHandle
that 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 with Advice
.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Determines if the method is bound to the arguments and instance of the current invocation.
-
Element Details
-
bound
boolean boundDetermines if the method is bound to the arguments and instance of the current invocation.- Returns:
true
if the handle should be bound to the current arguments.
- Default:
true
-