@HashCodeAndEqualsPlugin.Enhance public static class Advice.Dispatcher.RelocationHandler.ForType extends Object implements Advice.Dispatcher.RelocationHandler
| Modifier and Type | Class and Description |
|---|---|
protected class |
Advice.Dispatcher.RelocationHandler.ForType.Bound
A bound relocation handler for
Advice.Dispatcher.RelocationHandler.ForType. |
Advice.Dispatcher.RelocationHandler.Disabled, Advice.Dispatcher.RelocationHandler.ForType, Advice.Dispatcher.RelocationHandler.ForValue, Advice.Dispatcher.RelocationHandler.Relocation| Modifier | Constructor and Description |
|---|---|
protected |
ForType(TypeDescription typeDescription,
int index)
Creates a new relocation handler that triggers a relocation if a value is an instance of a given type.
|
| Modifier and Type | Method and Description |
|---|---|
Advice.Dispatcher.RelocationHandler.Bound |
bind(MethodDescription instrumentedMethod,
Advice.Dispatcher.RelocationHandler.Relocation relocation)
Binds this relocation handler to a relocation dispatcher.
|
protected static Advice.Dispatcher.RelocationHandler |
of(TypeDescription typeDescription,
int index,
TypeDefinition returnedType)
Resolves a relocation handler that is triggered if the checked instance is of a given type.
|
protected ForType(TypeDescription typeDescription, int index)
typeDescription - The type that triggers a relocation.index - The index of the array returned by the advice method that contains the value to check for its type.protected static Advice.Dispatcher.RelocationHandler of(TypeDescription typeDescription, int index, TypeDefinition returnedType)
typeDescription - The type that triggers a relocation.index - The array index of the value that is returned.returnedType - The type that is returned by the advice method.public Advice.Dispatcher.RelocationHandler.Bound bind(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation)
bind in interface Advice.Dispatcher.RelocationHandlerinstrumentedMethod - The instrumented method.relocation - The relocation to apply.Copyright © 2014–2025. All rights reserved.