Package net.bytebuddy.implementation
Interface MethodCall.ArgumentLoader
-
- All Known Implementing Classes:
MethodCall.ArgumentLoader.ForField
,MethodCall.ArgumentLoader.ForInstance
,MethodCall.ArgumentLoader.ForInstrumentedType
,MethodCall.ArgumentLoader.ForMethodCall
,MethodCall.ArgumentLoader.ForMethodParameter
,MethodCall.ArgumentLoader.ForMethodParameterArray
,MethodCall.ArgumentLoader.ForMethodParameterArrayElement
,MethodCall.ArgumentLoader.ForNullConstant
,MethodCall.ArgumentLoader.ForStackManipulation
,MethodCall.ArgumentLoader.ForThisReference
- Enclosing class:
- MethodCall
public static interface MethodCall.ArgumentLoader
An argument loader is responsible for loading an argument for an invoked method onto the operand stack.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
MethodCall.ArgumentLoader.ArgumentProvider
An argument provider is responsible for providing an argument loader for each argument to supply to a method.static interface
MethodCall.ArgumentLoader.Factory
A factory that producesMethodCall.ArgumentLoader
s for a given instrumented method.static class
MethodCall.ArgumentLoader.ForField
Loads the value of an existing field onto the operand stack.static class
MethodCall.ArgumentLoader.ForInstance
Loads a value onto the operand stack that is stored in a static field.static class
MethodCall.ArgumentLoader.ForInstrumentedType
Loads the instrumented type onto the operand stack.static class
MethodCall.ArgumentLoader.ForMethodCall
Loads the return value of a method call onto the operand stack.static class
MethodCall.ArgumentLoader.ForMethodParameter
Loads a parameter of the instrumented method onto the operand stack.static class
MethodCall.ArgumentLoader.ForMethodParameterArray
Loads an array containing all arguments of a method.static class
MethodCall.ArgumentLoader.ForMethodParameterArrayElement
An argument loader that loads an element of a parameter of an array type.static class
MethodCall.ArgumentLoader.ForNullConstant
An argument loader that loads thenull
value onto the operand stack.static class
MethodCall.ArgumentLoader.ForStackManipulation
Loads a stack manipulation resulting in a specific type as an argument.static class
MethodCall.ArgumentLoader.ForThisReference
An argument loader that assigns thethis
reference to a parameter.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StackManipulation
toStackManipulation(ParameterDescription target, Assigner assigner, Assigner.Typing typing)
Loads the argument that is represented by this instance onto the operand stack.
-
-
-
Method Detail
-
toStackManipulation
StackManipulation toStackManipulation(ParameterDescription target, Assigner assigner, Assigner.Typing typing)
Loads the argument that is represented by this instance onto the operand stack.- Parameters:
target
- The target parameter.assigner
- The assigner to be used.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.- Returns:
- The stack manipulation that loads the represented argument onto the stack.
-
-