Package net.bytebuddy.implementation
Class MethodCall.TargetHandler.ForMethodCall.Resolved
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.TargetHandler.ForMethodCall.Resolved
-
- All Implemented Interfaces:
MethodCall.TargetHandler.Resolved
- Enclosing class:
- MethodCall.TargetHandler.ForMethodCall
@Enhance protected static class MethodCall.TargetHandler.ForMethodCall.Resolved extends java.lang.Object implements MethodCall.TargetHandler.Resolved
A resolved target handler for a method call.
-
-
Field Summary
Fields Modifier and Type Field Description private MethodCall.AppenderappenderThe appender to use.private MethodDescriptioninstrumentedMethodThe instrumented method.private MethodDescriptionmethodDescriptionThe invoked method.private MethodCall.TargetHandler.ResolvedtargetHandlerThe target handler to use.
-
Constructor Summary
Constructors Modifier Constructor Description protectedResolved(MethodCall.Appender appender, MethodDescription methodDescription, MethodDescription instrumentedMethod, MethodCall.TargetHandler.Resolved targetHandler)Creates a resolved target handler for a method call.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescriptiongetTypeDescription()Returns the target's type description.StackManipulationtoStackManipulation(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing)Creates a stack manipulation to represent this resolved target handler.
-
-
-
Field Detail
-
appender
private final MethodCall.Appender appender
The appender to use.
-
methodDescription
private final MethodDescription methodDescription
The invoked method.
-
instrumentedMethod
private final MethodDescription instrumentedMethod
The instrumented method.
-
targetHandler
private final MethodCall.TargetHandler.Resolved targetHandler
The target handler to use.
-
-
Constructor Detail
-
Resolved
protected Resolved(MethodCall.Appender appender, MethodDescription methodDescription, MethodDescription instrumentedMethod, MethodCall.TargetHandler.Resolved targetHandler)
Creates a resolved target handler for a method call.- Parameters:
appender- The appender to use.methodDescription- The invoked method.instrumentedMethod- The instrumented method.targetHandler- The target handler to use.
-
-
Method Detail
-
getTypeDescription
public TypeDescription getTypeDescription()
Returns the target's type description.- Specified by:
getTypeDescriptionin interfaceMethodCall.TargetHandler.Resolved- Returns:
- The target's type description.
-
toStackManipulation
public StackManipulation toStackManipulation(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing)
Creates a stack manipulation to represent this resolved target handler.- Specified by:
toStackManipulationin interfaceMethodCall.TargetHandler.Resolved- Parameters:
invokedMethod- The invoked method.assigner- The assigner to use.typing- The typing to apply.- Returns:
- A stack manipulation that implements this target handler.
-
-