Annotation Type Handle
Binds a method handle in the context of the instrumented method.
Important: Don't confuse this annotation with Advice.Handle
or
MemberSubstitution.Handle
. This annotation should be used with
MethodDelegation
only.
- See Also:
-
Nested Class Summary
Nested Classes -
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.
-