Package net.bytebuddy.asm
Annotation Type MemberSubstitution.Handle
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public static @interface MemberSubstitution.Handle
Indicates that the annotated parameter should load a
java.lang.invoke.MethodHandle
that represents an invocation of the specified expression.Important: Don't confuse this annotation with
Advice.Handle
orHandle
. This annotation should be used only in combination withMemberSubstitution.Substitution.Chain.Step.ForDelegation
.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
name
Returns the name of the method handle.java.lang.Class<?>[]
parameterTypes
Returns the parameter types of the method handle.java.lang.Class<?>
returnType
Returns the return type of the method handle.JavaConstant.MethodHandle.HandleType
type
Returns the type of the method handle to resolve.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>
owner
Returns 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.
-
-