protected static interface MethodCall.TerminationHandler
MethodCall
.Modifier and Type | Interface and Description |
---|---|
static interface |
MethodCall.TerminationHandler.Factory
A factory for creating a termination handler.
|
static class |
MethodCall.TerminationHandler.FieldSetting
A termination handler that sets a field.
|
static class |
MethodCall.TerminationHandler.Simple
Simple termination handler implementations.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation |
prepare()
Returns a preparing stack manipulation to apply prior to the method call.
|
StackManipulation |
toStackManipulation(MethodDescription invokedMethod,
MethodDescription instrumentedMethod,
Assigner assigner,
Assigner.Typing typing)
Returns a stack manipulation that handles the method return.
|
StackManipulation prepare()
StackManipulation toStackManipulation(MethodDescription invokedMethod, MethodDescription instrumentedMethod, Assigner assigner, Assigner.Typing typing)
invokedMethod
- The method that was invoked by the method call.instrumentedMethod
- The method being intercepted.assigner
- The assigner to be used.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.Copyright © 2014–2024. All rights reserved.