Package net.bytebuddy.asm
Annotation Type MemberSubstitution.Handle
- Enclosing class:
MemberSubstitution
@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
or
Handle
. This annotation should be used only in combination
with MemberSubstitution.Substitution.Chain.Step.ForDelegation
.
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
type
Returns the type of the method handle to resolve.- Returns:
- The type of the method handle to resolve.
-
owner
Class<?> ownerReturns the owner type of the method handle, orvoid
, to represent the instrumented type.- Returns:
- The owner type of the method handle, or
void
, to represent the instrumented type.
- Default:
void.class
-
name
String nameReturns the name of the method handle.- Returns:
- The name of the method handle.
-
returnType
Class<?> returnTypeReturns the return type of the method handle.- Returns:
- The return type of the method handle.
-
parameterTypes
Class<?>[] parameterTypesReturns the parameter types of the method handle.- Returns:
- The parameter types of the method handle.
-