@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,
int index,
boolean inverted)
Creates a new bound relocation handler.
|
Modifier and Type | Method and Description |
---|---|
int |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
int offset)
Applies this relocation handler.
|
protected Bound(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation, int index, boolean inverted)
instrumentedMethod
- The instrumented method.relocation
- The relocation to apply.index
- The array index of the relocated value.inverted
- true
if the relocation should be applied for any non-default value of a type.public int apply(MethodVisitor methodVisitor, Implementation.Context implementationContext, int offset)
apply
in interface Advice.Dispatcher.RelocationHandler.Bound
methodVisitor
- The method visitor to use.implementationContext
- The implementation context to use.offset
- The offset of the relevant value.Copyright © 2014–2024. All rights reserved.