@Documented @Retention(value=RUNTIME) @Target(value=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
.
Modifier and Type | Required Element and Description |
---|---|
String |
name
Returns the name of the method handle.
|
Class<?>[] |
parameterTypes
Returns the parameter types of the method handle.
|
Class<?> |
returnType
Returns the return type of the method handle.
|
JavaConstant.MethodHandle.HandleType |
type
Returns the type of the method handle to resolve.
|
public abstract JavaConstant.MethodHandle.HandleType type
public abstract String name
public abstract Class<?> returnType
public abstract Class<?>[] parameterTypes
public abstract Class<?> owner
void
, to represent the instrumented type.void
, to represent the instrumented type.Copyright © 2014–2025. All rights reserved.