public static interface Advice.ArgumentHandler.ForInstrumentedMethod extends Advice.ArgumentHandler
Modifier and Type | Interface and Description |
---|---|
static class |
Advice.ArgumentHandler.ForInstrumentedMethod.Copying
An argument handler for an instrumented method that copies all arguments before executing the instrumented method.
|
static class |
Advice.ArgumentHandler.ForInstrumentedMethod.Simple
A simple 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.
|
boolean |
isCopyingArguments()
Returns
true if the original arguments are copied before invoking the instrumented method. |
int |
prepare(org.objectweb.asm.MethodVisitor methodVisitor)
Prepates this argument handler for future offset access.
|
int |
variable(int index)
Resolves a local variable index.
|
argument, enter, returned, thrown
int variable(int index)
index
- The index to resolve.int prepare(org.objectweb.asm.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.Copyright © 2014–2018. All rights reserved.