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 ClassesModifier and TypeInterfaceDescriptionstatic interface
A boundAdvice.Dispatcher.RelocationHandler
.static enum
A disabled relocation handler that does never trigger a relocation.static class
A relocation handler that is triggered if the checked value is an instance of a given type.static enum
A relocation handler that triggers a relocation for a default or non-default value.static interface
A relocator is responsible for triggering a relocation if a relocation handler triggers a relocating condition. -
Method Summary
Modifier and TypeMethodDescriptionbind
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.
-
Method Details
-
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.
-