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 java.lang.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 Classes Modifier and Type Class Description protected static class
MethodCall.TargetHandler.ForSelfOrStaticInvocation.Factory
A factory for invoking a static method or a self-declared method.protected static class
MethodCall.TargetHandler.ForSelfOrStaticInvocation.Resolved
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 Modifier and Type Field Description private TypeDescription
instrumentedType
The instrumented type.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForSelfOrStaticInvocation(TypeDescription instrumentedType)
Creates a new target handler for a static or self-declared invocation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodCall.TargetHandler.Resolved
resolve(MethodDescription instrumentedMethod)
Resolves this target handler.
-
-
-
Field Detail
-
instrumentedType
private final TypeDescription instrumentedType
The instrumented type.
-
-
Constructor Detail
-
ForSelfOrStaticInvocation
protected ForSelfOrStaticInvocation(TypeDescription instrumentedType)
Creates a new target handler for a static or self-declared invocation.- Parameters:
instrumentedType
- The instrumented type.
-
-
Method Detail
-
resolve
public MethodCall.TargetHandler.Resolved resolve(MethodDescription instrumentedMethod)
Resolves this target handler.- Specified by:
resolve
in interfaceMethodCall.TargetHandler
- Parameters:
instrumentedMethod
- The instrumented method.- Returns:
- The resolved target handler.
-
-