public static interface Advice.ArgumentHandler
Modifier and Type | Interface and Description |
---|---|
static class |
Advice.ArgumentHandler.Factory
A factory for creating an argument handler.
|
static interface |
Advice.ArgumentHandler.ForAdvice
An argument handler that is used for resolving an advice method.
|
static interface |
Advice.ArgumentHandler.ForInstrumentedMethod
An argument handler that is used for resolving the instrumented method.
|
Modifier and Type | Field and Description |
---|---|
static int |
THIS_REFERENCE
The offset of the
this reference. |
Modifier and Type | Method and Description |
---|---|
int |
argument(int offset)
Resolves an offset relative to an offset of the instrumented method.
|
int |
enter()
Resolves the offset of the enter value of the enter advice.
|
int |
exit()
Resolves the offset of the exit value of the exit advice.
|
int |
named(String name)
Returns the offset of the local variable with the given name.
|
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.
|
static final int THIS_REFERENCE
this
reference.int argument(int offset)
offset
- The offset to resolve.int exit()
int enter()
int named(String name)
name
- The name of the local variable being accessed.int returned()
int thrown()
Copyright © 2014–2019. All rights reserved.