Package net.bytebuddy.implementation
Interface MethodCall.TargetHandler
-
- All Known Implementing Classes:
MethodCall.TargetHandler.ForConstructingInvocation,MethodCall.TargetHandler.ForField,MethodCall.TargetHandler.ForMethodCall,MethodCall.TargetHandler.ForMethodParameter,MethodCall.TargetHandler.ForSelfOrStaticInvocation,MethodCall.TargetHandler.ForValue,MethodCall.TargetHandler.Simple
- Enclosing class:
- MethodCall
protected static interface MethodCall.TargetHandlerA target handler is responsible for invoking a method for aMethodCall.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMethodCall.TargetHandler.FactoryA factory for creating a target handler.static classMethodCall.TargetHandler.ForConstructingInvocationInvokes a method in order to construct a new instance.static classMethodCall.TargetHandler.ForFieldCreates a target handler that stores the instance to invoke a method on in an instance field.static classMethodCall.TargetHandler.ForMethodCallA target handler that executes the method and uses it's return value as the target object.static classMethodCall.TargetHandler.ForMethodParameterA target handler that loads the parameter of the given index as the target object.static classMethodCall.TargetHandler.ForSelfOrStaticInvocationA target handler that invokes a method either on the instance of the instrumented type or as a static method.static classMethodCall.TargetHandler.ForValueA target handler that invokes a method on an instance that is stored in a static field.static interfaceMethodCall.TargetHandler.ResolvedA resolved target handler.static classMethodCall.TargetHandler.SimpleA simple target handler that applies a given stack manipulation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodCall.TargetHandler.Resolvedresolve(MethodDescription instrumentedMethod)Resolves this target handler.
-
-
-
Method Detail
-
resolve
MethodCall.TargetHandler.Resolved resolve(MethodDescription instrumentedMethod)
Resolves this target handler.- Parameters:
instrumentedMethod- The instrumented method.- Returns:
- The resolved target handler.
-
-