public static interface Advice.ArgumentHandler.ForInstrumentedMethod extends Advice.ArgumentHandler
Modifier and Type | Interface and Description |
---|---|
static class |
Advice.ArgumentHandler.ForInstrumentedMethod.Default
A default implementation of an argument handler for an instrumented method.
|
Advice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethod
THIS_REFERENCE
Modifier and Type | Method and Description |
---|---|
Advice.ArgumentHandler.ForAdvice |
bindEnter(MethodDescription adviceMethod)
Binds an advice method as enter advice for this handler.
|
Advice.ArgumentHandler.ForAdvice |
bindExit(MethodDescription adviceMethod,
boolean skipThrowable)
Binds an advice method as exit advice for this handler.
|
List<TypeDescription> |
getNamedTypes()
Returns a list of the named types in their declared order.
|
boolean |
isCopyingArguments()
Returns
true if the original arguments are copied before invoking the instrumented method. |
int |
prepare(MethodVisitor methodVisitor)
Prepares this argument handler for future offset access.
|
int |
variable(int index)
Resolves a local variable index.
|
int variable(int index)
index
- The index to resolve.int prepare(MethodVisitor methodVisitor)
methodVisitor
- The method visitor to which to write any potential byte code.Advice.ArgumentHandler.ForAdvice bindEnter(MethodDescription adviceMethod)
adviceMethod
- The resolved enter advice handler.Advice.ArgumentHandler.ForAdvice bindExit(MethodDescription adviceMethod, boolean skipThrowable)
adviceMethod
- The resolved exit advice handler.skipThrowable
- true
if no throwable is stored.boolean isCopyingArguments()
true
if the original arguments are copied before invoking the instrumented method.true
if the original arguments are copied before invoking the instrumented method.List<TypeDescription> getNamedTypes()
Copyright © 2014–2020. All rights reserved.