@HashCodeAndEqualsPlugin.Enhance(includeSyntheticFields=true) protected class Advice.Dispatcher.RelocationHandler.ForValue.Bound extends java.lang.Object implements Advice.Dispatcher.RelocationHandler.Bound
Advice.Dispatcher.RelocationHandler.ForValue
.Modifier and Type | Field and Description |
---|---|
private MethodDescription |
instrumentedMethod
The instrumented method.
|
private boolean |
inverted
true if the relocation should be applied for any non-default value of a type. |
private Advice.Dispatcher.RelocationHandler.Relocation |
relocation
The relocation to apply.
|
NO_REQUIRED_SIZE
Modifier | Constructor and Description |
---|---|
protected |
Bound(MethodDescription instrumentedMethod,
Advice.Dispatcher.RelocationHandler.Relocation relocation,
boolean inverted)
Creates a new bound relocation handler.
|
Modifier and Type | Method and Description |
---|---|
int |
apply(org.objectweb.asm.MethodVisitor methodVisitor,
int offset)
Applies this relocation handler.
|
private final MethodDescription instrumentedMethod
private final Advice.Dispatcher.RelocationHandler.Relocation relocation
private final boolean inverted
true
if the relocation should be applied for any non-default value of a type.protected Bound(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation, boolean inverted)
instrumentedMethod
- The instrumented method.relocation
- The relocation to apply.inverted
- true
if the relocation should be applied for any non-default value of a type.public int apply(org.objectweb.asm.MethodVisitor methodVisitor, int offset)
apply
in interface Advice.Dispatcher.RelocationHandler.Bound
methodVisitor
- The method visitor to use.offset
- The offset of the relevant value.