Package net.bytebuddy.asm
Interface Advice.Dispatcher.RelocationHandler
-
- All Known Implementing Classes:
Advice.Dispatcher.RelocationHandler.Disabled
,Advice.Dispatcher.RelocationHandler.ForType
,Advice.Dispatcher.RelocationHandler.ForValue
,Advice.Dispatcher.RelocationHandler.ForValue.Inverted
- Enclosing interface:
- Advice.Dispatcher
public static interface Advice.Dispatcher.RelocationHandler
A relocation handler is responsible for chaining the usual control flow of an instrumented method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Advice.Dispatcher.RelocationHandler.Bound
A boundAdvice.Dispatcher.RelocationHandler
.static class
Advice.Dispatcher.RelocationHandler.Disabled
A disabled relocation handler that does never trigger a relocation.static class
Advice.Dispatcher.RelocationHandler.ForType
A relocation handler that is triggered if the checked value is an instance of a given type.static class
Advice.Dispatcher.RelocationHandler.ForValue
A relocation handler that triggers a relocation for a default or non-default value.static interface
Advice.Dispatcher.RelocationHandler.Relocation
A relocator is responsible for triggering a relocation if a relocation handler triggers a relocating condition.
-
Method Summary
All Methods Instance Methods Abstract 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
Advice.Dispatcher.RelocationHandler.Bound bind(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation)
Binds this relocation handler to a relocation dispatcher.- Parameters:
instrumentedMethod
- The instrumented method.relocation
- The relocation to apply.- Returns:
- A bound relocation handler.
-
-