@HashCodeAndEqualsPlugin.Enhance protected static class MethodCall.TargetHandler.ForMethodCall.Resolved extends java.lang.Object implements MethodCall.TargetHandler.Resolved
Modifier and Type | Field and Description |
---|---|
private MethodCall.Appender |
appender
The appender to use.
|
private MethodDescription |
instrumentedMethod
The instrumented method.
|
private MethodDescription |
methodDescription
The invoked method.
|
private MethodCall.TargetHandler.Resolved |
targetHandler
The target handler to use.
|
Modifier | Constructor and Description |
---|---|
protected |
Resolved(MethodCall.Appender appender,
MethodDescription methodDescription,
MethodDescription instrumentedMethod,
MethodCall.TargetHandler.Resolved targetHandler)
Creates a resolved target handler for a method call.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
getTypeDescription()
Returns the target's type description.
|
StackManipulation |
toStackManipulation(MethodDescription invokedMethod,
Assigner assigner,
Assigner.Typing typing)
Creates a stack manipulation to represent this resolved target handler.
|
private final MethodCall.Appender appender
private final MethodDescription methodDescription
private final MethodDescription instrumentedMethod
private final MethodCall.TargetHandler.Resolved targetHandler
protected Resolved(MethodCall.Appender appender, MethodDescription methodDescription, MethodDescription instrumentedMethod, MethodCall.TargetHandler.Resolved targetHandler)
appender
- The appender to use.methodDescription
- The invoked method.instrumentedMethod
- The instrumented method.targetHandler
- The target handler to use.public TypeDescription getTypeDescription()
getTypeDescription
in interface MethodCall.TargetHandler.Resolved
public StackManipulation toStackManipulation(MethodDescription invokedMethod, Assigner assigner, Assigner.Typing typing)
toStackManipulation
in interface MethodCall.TargetHandler.Resolved
invokedMethod
- The invoked method.assigner
- The assigner to use.typing
- The typing to apply.