@HashCodeAndEqualsPlugin.Enhance protected static class Advice.ArgumentHandler.ForAdvice.Default.ForMethodEnter extends Advice.ArgumentHandler.ForAdvice.Default
Advice.ArgumentHandler.ForAdvice.Default.ForMethodEnter, Advice.ArgumentHandler.ForAdvice.Default.ForMethodExitAdvice.ArgumentHandler.ForAdvice.DefaultAdvice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethodadviceMethod, exitType, instrumentedMethod, namedTypesTHIS_REFERENCE| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodEnter(MethodDescription instrumentedMethod,
MethodDescription adviceMethod,
TypeDefinition exitType,
NavigableMap<String,TypeDefinition> namedTypes)
Creates a new argument handler for an enter advice method.
|
| Modifier and Type | Method and Description |
|---|---|
int |
mapped(int offset)
Resolves an offset of the advice method.
|
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.
|
argument, enter, exit, namedprotected ForMethodEnter(MethodDescription instrumentedMethod, MethodDescription adviceMethod, TypeDefinition exitType, NavigableMap<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 returned()
Advice.ArgumentHandlerpublic int thrown()
Advice.ArgumentHandlerpublic int mapped(int offset)
Advice.ArgumentHandler.ForAdviceoffset - The offset to resolve.Copyright © 2014–2018. All rights reserved.