@HashCodeAndEqualsPlugin.Enhance protected static class Advice.ArgumentHandler.ForInstrumentedMethod.Default.Copying 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 |
Copying(MethodDescription instrumentedMethod,
TypeDefinition exitType,
SortedMap<String,TypeDefinition> namedTypes,
TypeDefinition enterType)
Creates a new copying 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(MethodVisitor methodVisitor)
Prepares this argument handler for future offset access.
|
bindEnter, bindExit, enter, exit, getNamedTypes, named, returned, thrown
protected Copying(MethodDescription instrumentedMethod, TypeDefinition exitType, SortedMap<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)
offset
- The offset to resolve.public boolean isCopyingArguments()
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(MethodVisitor methodVisitor)
methodVisitor
- The method visitor to which to write any potential byte code.Copyright © 2014–2025. All rights reserved.