Package net.bytebuddy.implementation
Class MethodCall.TargetHandler.ForMethodParameter.Resolved
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.TargetHandler.ForMethodParameter.Resolved
-
- All Implemented Interfaces:
MethodCall.TargetHandler.Resolved
- Enclosing class:
- MethodCall.TargetHandler.ForMethodParameter
@Enhance protected static class MethodCall.TargetHandler.ForMethodParameter.Resolved extends java.lang.Object implements MethodCall.TargetHandler.Resolved
A resolved target handler for a method parameter.
-
-
Field Summary
Fields Modifier and Type Field Description private ParameterDescription
parameterDescription
The parameter that is the target of the method call.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Resolved(ParameterDescription parameterDescription)
Creates a new resolved target handler for a parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
parameterDescription
private final ParameterDescription parameterDescription
The parameter that is the target of the method call.
-
-
Constructor Detail
-
Resolved
protected Resolved(ParameterDescription parameterDescription)
Creates a new resolved target handler for a parameter.- Parameters:
parameterDescription
- The parameter that is the target of the method call.
-
-
Method Detail
-
getTypeDescription
public TypeDescription getTypeDescription()
Returns the target's type description.- Specified by:
getTypeDescription
in 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:
toStackManipulation
in 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.
-
-