@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)
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,
TypeDefinition checkedType)
Resolves a relocation handler that is triggered if the checked instance is of a given type.
|
protected ForType(TypeDescription typeDescription)
typeDescription - The type that triggers a relocation.protected static Advice.Dispatcher.RelocationHandler of(TypeDescription typeDescription, TypeDefinition checkedType)
typeDescription - The type that triggers a relocation.checkedType - The type that is carrying the checked value.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–2019. All rights reserved.