@HashCodeAndEqualsPlugin.Enhance public static class Advice.ArgumentHandler.ForInstrumentedMethod.Copying extends Object implements Advice.ArgumentHandler.ForInstrumentedMethod
Advice.ArgumentHandler.ForInstrumentedMethod.Copying, Advice.ArgumentHandler.ForInstrumentedMethod.SimpleAdvice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethodTHIS_REFERENCE| Modifier | Constructor and Description |
|---|---|
protected |
Copying(MethodDescription instrumentedMethod,
TypeDefinition enterType)
Creates a new argument-copying argument handler for an instrumented method.
|
| Modifier and Type | Method and Description |
|---|---|
int |
argument(int offset)
Resolves an offset relative to an offset of the instrumented method.
|
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.
|
int |
enter()
Resolves the offset of the enter value of the enter advice.
|
boolean |
isCopyingArguments()
Returns
true if the original arguments are copied before invoking the instrumented method. |
int |
prepare(MethodVisitor methodVisitor)
Prepates this argument handler for future offset access.
|
int |
returned()
Resolves the offset of the returned value of the instrumented method.
|
int |
thrown()
Resolves the offset of the thrown exception of the instrumented method.
|
int |
variable(int index)
Resolves a local variable index.
|
protected Copying(MethodDescription instrumentedMethod, TypeDefinition enterType)
instrumentedMethod - The instrumented method.enterType - The enter type or void if no enter type is defined.public int argument(int offset)
Advice.ArgumentHandlerargument in interface Advice.ArgumentHandleroffset - The offset to resolve.public int enter()
Advice.ArgumentHandlerenter in interface Advice.ArgumentHandlerpublic int returned()
Advice.ArgumentHandlerreturned in interface Advice.ArgumentHandlerpublic int thrown()
Advice.ArgumentHandlerthrown in interface Advice.ArgumentHandlerpublic int variable(int index)
Advice.ArgumentHandler.ForInstrumentedMethodvariable in interface Advice.ArgumentHandler.ForInstrumentedMethodindex - The index to resolve.public int prepare(MethodVisitor methodVisitor)
Advice.ArgumentHandler.ForInstrumentedMethodprepare in interface Advice.ArgumentHandler.ForInstrumentedMethodmethodVisitor - The method visitor to which to write any potential byte code.public Advice.ArgumentHandler.ForAdvice bindEnter(MethodDescription adviceMethod)
Advice.ArgumentHandler.ForInstrumentedMethodbindEnter in interface Advice.ArgumentHandler.ForInstrumentedMethodadviceMethod - The resolved enter advice handler.public Advice.ArgumentHandler.ForAdvice bindExit(MethodDescription adviceMethod, boolean skipThrowable)
Advice.ArgumentHandler.ForInstrumentedMethodbindExit in interface Advice.ArgumentHandler.ForInstrumentedMethodadviceMethod - The resolved exit advice handler.skipThrowable - true if no throwable is stored.public boolean isCopyingArguments()
Advice.ArgumentHandler.ForInstrumentedMethodtrue if the original arguments are copied before invoking the instrumented method.isCopyingArguments in interface Advice.ArgumentHandler.ForInstrumentedMethodtrue if the original arguments are copied before invoking the instrumented method.Copyright © 2014–2018. All rights reserved.