Package net.bytebuddy.asm
Interface Advice.ArgumentHandler.ForInstrumentedMethod
-
- All Superinterfaces:
Advice.ArgumentHandler
- All Known Implementing Classes:
Advice.ArgumentHandler.ForInstrumentedMethod.Copying,Advice.ArgumentHandler.ForInstrumentedMethod.Simple
- Enclosing interface:
- Advice.ArgumentHandler
public static interface Advice.ArgumentHandler.ForInstrumentedMethod extends Advice.ArgumentHandler
An argument handler that is used for resolving the instrumented method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAdvice.ArgumentHandler.ForInstrumentedMethod.CopyingAn argument handler for an instrumented method that copies all arguments before executing the instrumented method.static classAdvice.ArgumentHandler.ForInstrumentedMethod.SimpleA simple argument handler for an instrumented method.-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.ArgumentHandler
Advice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethod
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.asm.Advice.ArgumentHandler
THIS_REFERENCE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Advice.ArgumentHandler.ForAdvicebindEnter(MethodDescription adviceMethod)Binds an advice method as enter advice for this handler.Advice.ArgumentHandler.ForAdvicebindExit(MethodDescription adviceMethod, boolean skipThrowable)Binds an advice method as exit advice for this handler.booleanisCopyingArguments()Returnstrueif the original arguments are copied before invoking the instrumented method.intprepare(org.objectweb.asm.MethodVisitor methodVisitor)Prepates this argument handler for future offset access.intvariable(int index)Resolves a local variable index.-
Methods inherited from interface net.bytebuddy.asm.Advice.ArgumentHandler
argument, enter, returned, thrown
-
-
-
-
Method Detail
-
variable
int variable(int index)
Resolves a local variable index.- Parameters:
index- The index to resolve.- Returns:
- The resolved local variable index.
-
prepare
int prepare(org.objectweb.asm.MethodVisitor methodVisitor)
Prepates this argument handler for future offset access.- Parameters:
methodVisitor- The method visitor to which to write any potential byte code.- Returns:
- The minimum stack size that is required to apply this manipulation.
-
bindEnter
Advice.ArgumentHandler.ForAdvice bindEnter(MethodDescription adviceMethod)
Binds an advice method as enter advice for this handler.- Parameters:
adviceMethod- The resolved enter advice handler.- Returns:
- The resolved argument handler for enter advice.
-
bindExit
Advice.ArgumentHandler.ForAdvice bindExit(MethodDescription adviceMethod, boolean skipThrowable)
Binds an advice method as exit advice for this handler.- Parameters:
adviceMethod- The resolved exit advice handler.skipThrowable-trueif no throwable is stored.- Returns:
- The resolved argument handler for enter advice.
-
isCopyingArguments
boolean isCopyingArguments()
Returnstrueif the original arguments are copied before invoking the instrumented method.- Returns:
trueif the original arguments are copied before invoking the instrumented method.
-
-