Package net.bytebuddy.asm
Annotation Type Advice.Handle
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public static @interface Advice.HandleIndicates that the annotated parameter should load a
java.lang.invoke.MethodHandlethat represents a method invocation, constructor invocation or field access.Important: Don't confuse this annotation with
MemberSubstitution.HandleorHandle. This annotation should be used only in combination withAdvice.- See Also:
Advice,Advice.OnMethodEnter,Advice.OnMethodExit
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringnameReturns the name of the method handle.java.lang.Class<?>[]parameterTypesReturns the parameter types of the method handle.java.lang.Class<?>returnTypeReturns the return type of the method handle.JavaConstant.MethodHandle.HandleTypetypeReturns the type of the method handle to resolve.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>ownerReturns the owner type of the method handle, orvoid, to represent the instrumented type.
-
-
-
Element Detail
-
type
JavaConstant.MethodHandle.HandleType type
Returns the type of the method handle to resolve.- Returns:
- The type of the method handle to resolve.
-
-