Package net.bytebuddy.asm
Class Advice.Dispatcher.RelocationHandler.ForValue.OfNonDefault
java.lang.Object
net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler.ForValue.OfNonDefault
- All Implemented Interfaces:
Advice.Dispatcher.RelocationHandler
- Enclosing class:
Advice.Dispatcher.RelocationHandler.ForValue
@Enhance(includeSyntheticFields=true)
protected class Advice.Dispatcher.RelocationHandler.ForValue.OfNonDefault
extends Object
implements Advice.Dispatcher.RelocationHandler
A relocation handler that checks for a value being a non-default value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler
Advice.Dispatcher.RelocationHandler.Bound, Advice.Dispatcher.RelocationHandler.Disabled, Advice.Dispatcher.RelocationHandler.ForType, Advice.Dispatcher.RelocationHandler.ForValue, Advice.Dispatcher.RelocationHandler.Relocation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The index of the array returned by the advice method that contains the value to check for its value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
OfNonDefault
(int index) A relocation handler that checks if a value is a non-default value. -
Method Summary
Modifier and TypeMethodDescriptionbind
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.
-
Field Details
-
index
private final int indexThe index of the array returned by the advice method that contains the value to check for its value.
-
-
Constructor Details
-
OfNonDefault
protected OfNonDefault(int index) A relocation handler that checks if a value is a non-default value.- Parameters:
index
- The index of the array returned by the advice method that contains the value to check for its value.
-
-
Method Details
-
bind
public Advice.Dispatcher.RelocationHandler.Bound bind(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.- Specified by:
bind
in interfaceAdvice.Dispatcher.RelocationHandler
- Parameters:
instrumentedMethod
- The instrumented method.relocation
- The relocation to apply.- Returns:
- A bound relocation handler.
-