@HashCodeAndEqualsPlugin.Enhance public abstract static class Advice.OffsetMapping.ForArgument extends Object implements Advice.OffsetMapping
| Modifier and Type | Class and Description |
|---|---|
static class |
Advice.OffsetMapping.ForArgument.Resolved
An offset mapping for a specific parameter of the instrumented method.
|
static class |
Advice.OffsetMapping.ForArgument.Unresolved
An offset mapping for a parameter of the instrumented method with a specific index.
|
Advice.OffsetMapping.Factory<T extends Annotation>, Advice.OffsetMapping.ForAllArguments, Advice.OffsetMapping.ForArgument, Advice.OffsetMapping.ForDynamicConstant, Advice.OffsetMapping.ForEnterValue, Advice.OffsetMapping.ForExitValue, Advice.OffsetMapping.ForField, Advice.OffsetMapping.ForFieldHandle, Advice.OffsetMapping.ForHandle, Advice.OffsetMapping.ForInstrumentedMethod, Advice.OffsetMapping.ForInstrumentedType, Advice.OffsetMapping.ForLocalValue, Advice.OffsetMapping.ForOrigin, Advice.OffsetMapping.ForReturnValue, Advice.OffsetMapping.ForSelfCallHandle, Advice.OffsetMapping.ForSerializedValue, Advice.OffsetMapping.ForStackManipulation, Advice.OffsetMapping.ForStubValue, Advice.OffsetMapping.ForThisReference, Advice.OffsetMapping.ForThrowable, Advice.OffsetMapping.ForUnusedValue, Advice.OffsetMapping.Sort, Advice.OffsetMapping.Target| Modifier and Type | Field and Description |
|---|---|
protected boolean |
readOnly
Determines if the parameter is to be treated as read-only.
|
protected TypeDescription.Generic |
target
The type expected by the advice method.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ForArgument(TypeDescription.Generic target,
boolean readOnly,
Assigner.Typing typing)
Creates a new offset mapping for a parameter of the instrumented method.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ParameterDescription |
resolve(MethodDescription instrumentedMethod)
Resolves the bound parameter.
|
Advice.OffsetMapping.Target |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
Advice.OffsetMapping.Sort sort)
Resolves an offset mapping to a given target offset.
|
protected final TypeDescription.Generic target
protected final boolean readOnly
protected ForArgument(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing)
target - The type expected by the advice method.readOnly - Determines if the parameter is to be treated as read-only.typing - The typing to apply.public Advice.OffsetMapping.Target resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort)
resolve in interface Advice.OffsetMappinginstrumentedType - The instrumented type.instrumentedMethod - The instrumented method for which the mapping is to be resolved.assigner - The assigner to use.argumentHandler - The argument handler to use for resolving offsets of the local variable array of the instrumented method.sort - The sort of the advice method being resolved.protected abstract ParameterDescription resolve(MethodDescription instrumentedMethod)
instrumentedMethod - The instrumented method.Copyright © 2014–2025. All rights reserved.