Package net.bytebuddy.implementation
Class MethodCall.TargetHandler.ForSelfOrStaticInvocation
java.lang.Object
net.bytebuddy.implementation.MethodCall.TargetHandler.ForSelfOrStaticInvocation
- All Implemented Interfaces:
MethodCall.TargetHandler
- Enclosing interface:
MethodCall.TargetHandler
@Enhance
public static class MethodCall.TargetHandler.ForSelfOrStaticInvocation
extends Object
implements MethodCall.TargetHandler
A target handler that invokes a method either on the instance of the instrumented
type or as a static method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enum
A factory for invoking a static method or a self-declared method.protected static class
A resolved target handler for a static or self-declared invocation.Nested classes/interfaces inherited from interface net.bytebuddy.implementation.MethodCall.TargetHandler
MethodCall.TargetHandler.ForConstructingInvocation, MethodCall.TargetHandler.ForField, MethodCall.TargetHandler.ForMethodCall, MethodCall.TargetHandler.ForMethodParameter, MethodCall.TargetHandler.ForSelfOrStaticInvocation, MethodCall.TargetHandler.ForValue, MethodCall.TargetHandler.Simple
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForSelfOrStaticInvocation
(TypeDescription instrumentedType) Creates a new target handler for a static or self-declared invocation. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(MethodDescription instrumentedMethod) Resolves this target handler.
-
Field Details
-
instrumentedType
The instrumented type.
-
-
Constructor Details
-
ForSelfOrStaticInvocation
Creates a new target handler for a static or self-declared invocation.- Parameters:
instrumentedType
- The instrumented type.
-
-
Method Details
-
resolve
Resolves this target handler.- Specified by:
resolve
in interfaceMethodCall.TargetHandler
- Parameters:
instrumentedMethod
- The instrumented method.- Returns:
- The resolved target handler.
-