@HashCodeAndEqualsPlugin.Enhance protected static class Advice.ArgumentHandler.ForInstrumentedMethod.Default.Simple extends Advice.ArgumentHandler.ForInstrumentedMethod.Default
Advice.ArgumentHandler.ForInstrumentedMethod.Default.Copying, Advice.ArgumentHandler.ForInstrumentedMethod.Default.Simple
Advice.ArgumentHandler.ForInstrumentedMethod.Default
Advice.ArgumentHandler.Factory, Advice.ArgumentHandler.ForAdvice, Advice.ArgumentHandler.ForInstrumentedMethod
enterType, exitType, instrumentedMethod, namedTypes
THIS_REFERENCE
Modifier | Constructor and Description |
---|---|
protected |
Simple(MethodDescription instrumentedMethod,
TypeDefinition exitType,
NavigableMap<String,TypeDefinition> namedTypes,
TypeDefinition enterType)
Creates a new simple 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.
|
boolean |
isCopyingArguments()
Returns
true if the original arguments are copied before invoking the instrumented method. |
int |
prepare(org.objectweb.asm.MethodVisitor methodVisitor)
Prepares this argument handler for future offset access.
|
int |
variable(int index)
Resolves a local variable index.
|
bindEnter, bindExit, enter, exit, getNamedTypes, named, returned, thrown
protected Simple(MethodDescription instrumentedMethod, TypeDefinition exitType, NavigableMap<String,TypeDefinition> namedTypes, TypeDefinition enterType)
instrumentedMethod
- The instrumented 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.enterType
- The enter type or void
if no enter type is defined.public int argument(int offset)
Advice.ArgumentHandler
offset
- The offset to resolve.public int variable(int index)
Advice.ArgumentHandler.ForInstrumentedMethod
index
- The index to resolve.public boolean isCopyingArguments()
Advice.ArgumentHandler.ForInstrumentedMethod
true
if the original arguments are copied before invoking the instrumented method.true
if the original arguments are copied before invoking the instrumented method.public int prepare(org.objectweb.asm.MethodVisitor methodVisitor)
Advice.ArgumentHandler.ForInstrumentedMethod
methodVisitor
- The method visitor to which to write any potential byte code.Copyright © 2014–2018. All rights reserved.