public abstract static class Advice.ArgumentHandler.ForAdvice.Default extends Object implements Advice.ArgumentHandler.ForAdvice
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Advice.ArgumentHandler.ForAdvice.Default.ForMethodEnter
An argument handler for an enter advice method.
|
protected static class |
Advice.ArgumentHandler.ForAdvice.Default.ForMethodExit
An argument handler for an exit advice method.
|
Advice.ArgumentHandler.ForAdvice.DefaultAdvice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethod| Modifier and Type | Field and Description |
|---|---|
protected MethodDescription |
adviceMethod
The advice method.
|
protected TypeDefinition |
exitType
The enter type or
void if no enter type is defined. |
protected MethodDescription |
instrumentedMethod
The instrumented method.
|
protected SortedMap<String,TypeDefinition> |
namedTypes
A mapping of all available local variables by their name to their type.
|
THIS_REFERENCE| Modifier | Constructor and Description |
|---|---|
protected |
Default(MethodDescription instrumentedMethod,
MethodDescription adviceMethod,
TypeDefinition exitType,
SortedMap<String,TypeDefinition> namedTypes)
Creates a new argument handler for an enter advice.
|
| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmappedreturned, thrownprotected final MethodDescription instrumentedMethod
protected final MethodDescription adviceMethod
protected final TypeDefinition exitType
void if no enter type is defined.protected final SortedMap<String,TypeDefinition> namedTypes
protected Default(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, SortedMap<String,TypeDefinition> namedTypes)
instrumentedMethod - The instrumented method.adviceMethod - The advice method.exitType - The exit type or void if no exit type is defined.namedTypes - A mapping of all available local variables by their name to their type.public int argument(int offset)
argument in interface Advice.ArgumentHandleroffset - The offset to resolve.public int exit()
exit in interface Advice.ArgumentHandlerpublic int named(String name)
named in interface Advice.ArgumentHandlername - The name of the local variable being accessed.public int enter()
enter in interface Advice.ArgumentHandlerCopyright © 2014–2024. All rights reserved.