@HashCodeAndEqualsPlugin.Enhance(includeSyntheticFields=true) protected class Advice.Dispatcher.RelocationHandler.ForValue.Bound extends Object implements Advice.Dispatcher.RelocationHandler.Bound
Advice.Dispatcher.RelocationHandler.ForValue
.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(MethodVisitor methodVisitor,
int offset)
Applies this relocation handler.
|
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(MethodVisitor methodVisitor, int offset)
apply
in interface Advice.Dispatcher.RelocationHandler.Bound
methodVisitor
- The method visitor to use.offset
- The offset of the relevant value.Copyright © 2014–2020. All rights reserved.