Package net.bytebuddy.asm
Class Advice.Dispatcher.RelocationHandler.ForValue.OfDefault
- java.lang.Object
-
- net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler.ForValue.OfDefault
-
- All Implemented Interfaces:
Advice.Dispatcher.RelocationHandler
- Enclosing class:
- Advice.Dispatcher.RelocationHandler.ForValue
@Enhance(includeSyntheticFields=true) protected class Advice.Dispatcher.RelocationHandler.ForValue.OfDefault extends java.lang.Object implements Advice.Dispatcher.RelocationHandler
A relocation handler that checks for a value being a 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
Fields Modifier and Type Field Description private int
index
The index of the array returned by the advice method that contains the value to check for its value.
-
Constructor Summary
Constructors Constructor Description OfDefault(int index)
A relocation handler that checks if a value is a default value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Advice.Dispatcher.RelocationHandler.Bound
bind(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation)
Binds this relocation handler to a relocation dispatcher.
-
-
-
Method Detail
-
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.
-
-