public static interface Advice.Dispatcher.OffsetMapping.Target
Modifier and Type | Interface and Description |
---|---|
static class |
Advice.Dispatcher.OffsetMapping.Target.ForBoxedArguments
A target for an offset mapping of an array containing all (boxed) arguments of the instrumented method.
|
static class |
Advice.Dispatcher.OffsetMapping.Target.ForBoxedParameter
A target for an offset mapping that boxes a primitive parameter value.
|
static class |
Advice.Dispatcher.OffsetMapping.Target.ForConstantPoolValue
An offset mapping for a constant pool value.
|
static class |
Advice.Dispatcher.OffsetMapping.Target.ForDefaultValue
Loads a default value onto the stack or pops the accessed value off it.
|
static class |
Advice.Dispatcher.OffsetMapping.Target.ForField
An offset mapping for a field.
|
static class |
Advice.Dispatcher.OffsetMapping.Target.ForNullConstant
Binds a null constant to the target parameter.
|
static class |
Advice.Dispatcher.OffsetMapping.Target.ForParameter
A read-write target mapping.
|
static class |
Advice.Dispatcher.OffsetMapping.Target.ForReadOnlyField
An offset mapping for a field.
|
static class |
Advice.Dispatcher.OffsetMapping.Target.ForReadOnlyParameter
A read-only target mapping.
|
Modifier and Type | Field and Description |
---|---|
static int |
NO_PADDING
Indicates that applying this target does not require any additional padding.
|
Modifier and Type | Method and Description |
---|---|
int |
resolveAccess(MethodVisitor methodVisitor,
int opcode)
Applies this offset mapping for a
MethodVisitor.visitVarInsn(int, int) instruction. |
int |
resolveIncrement(MethodVisitor methodVisitor,
int increment)
Applies this offset mapping for a
MethodVisitor.visitIincInsn(int, int) instruction. |
static final int NO_PADDING
int resolveAccess(MethodVisitor methodVisitor, int opcode)
MethodVisitor.visitVarInsn(int, int)
instruction.methodVisitor
- The method visitor onto which this offset mapping is to be applied.opcode
- The opcode of the original instruction.int resolveIncrement(MethodVisitor methodVisitor, int increment)
MethodVisitor.visitIincInsn(int, int)
instruction.methodVisitor
- The method visitor onto which this offset mapping is to be applied.increment
- The value with which to increment the targeted value.Copyright © 2014–2016. All rights reserved.