protected static interface MethodCall.ArgumentLoader
Modifier and Type | Interface and Description |
---|---|
static class |
MethodCall.ArgumentLoader.ForBooleanConstant
Loads a
boolean value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForByteConstant
Loads a
byte value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForCharacterConstant
Loads a
char value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForClassConstant
Loads a
Class value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForDoubleConstant
Loads a
double value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForExistingField
Loads the value of an existing field onto the operand stack.
|
static class |
MethodCall.ArgumentLoader.ForFloatConstant
Loads a
float value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForInstanceField
Loads a value onto the operand stack that is stored in an instance field.
|
static class |
MethodCall.ArgumentLoader.ForIntegerConstant
Loads an
int value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForJavaInstance
Loads a Java instance onto the operand stack.
|
static class |
MethodCall.ArgumentLoader.ForLongConstant
Loads a
long value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForMethodParameter
Loads a parameter of the instrumented method onto the operand stack.
|
static class |
MethodCall.ArgumentLoader.ForNullConstant
An argument loader that loads the
null value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForShortConstant
Loads a
short value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForStaticField
Loads a value onto the operand stack that is stored in a static field.
|
static class |
MethodCall.ArgumentLoader.ForTextConstant
Loads a
String value onto the operand stack. |
static class |
MethodCall.ArgumentLoader.ForThisReference
An argument loader that assigns the
this reference to a parameter. |
Modifier and Type | Method and Description |
---|---|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares the instrumented type in order to allow the loading of the represented argument.
|
StackManipulation |
resolve(TypeDescription instrumentedType,
MethodDescription interceptedMethod,
TypeDescription targetType,
Assigner assigner,
boolean dynamicallyTyped)
Loads the argument that is represented by this instance onto the operand stack.
|
StackManipulation resolve(TypeDescription instrumentedType, MethodDescription interceptedMethod, TypeDescription targetType, Assigner assigner, boolean dynamicallyTyped)
instrumentedType
- The instrumented type.interceptedMethod
- The method being intercepted.targetType
- The target type.assigner
- The assigner to be used.dynamicallyTyped
- true
if an assignment should be consider type castings.InstrumentedType prepare(InstrumentedType instrumentedType)
instrumentedType
- The instrumented type.Copyright © 2014–2015. All rights reserved.