public static class Advice.Dispatcher.OffsetMapping.ForArgument extends Object implements Advice.Dispatcher.OffsetMapping
Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.Dispatcher.OffsetMapping.ForArgument.Factory
A factory for a mapping of a parameter of the instrumented method.
|
Advice.Dispatcher.OffsetMapping.Context, Advice.Dispatcher.OffsetMapping.ForAllArguments, Advice.Dispatcher.OffsetMapping.ForArgument, Advice.Dispatcher.OffsetMapping.ForEnterValue, Advice.Dispatcher.OffsetMapping.ForField, Advice.Dispatcher.OffsetMapping.ForInstrumentedMethod, Advice.Dispatcher.OffsetMapping.ForInstrumentedType, Advice.Dispatcher.OffsetMapping.ForOrigin, Advice.Dispatcher.OffsetMapping.ForReturnValue, Advice.Dispatcher.OffsetMapping.ForStubValue, Advice.Dispatcher.OffsetMapping.ForThisReference, Advice.Dispatcher.OffsetMapping.ForThrowable, Advice.Dispatcher.OffsetMapping.ForUnusedValue, Advice.Dispatcher.OffsetMapping.ForUserValue<T extends Annotation>, Advice.Dispatcher.OffsetMapping.Illegal, Advice.Dispatcher.OffsetMapping.Target
Modifier | Constructor and Description |
---|---|
protected |
ForArgument(ParameterDescription parameterDescription,
boolean readOnly,
Assigner.Typing typing)
Creates a new offset mapping for a parameter.
|
protected |
ForArgument(TypeDescription.Generic target,
Advice.Argument argument)
Creates a new offset mapping for a parameter.
|
protected |
ForArgument(TypeDescription.Generic target,
int index,
boolean readOnly,
Assigner.Typing typing)
Creates a new offset mapping for a parameter of the instrumented method.
|
Modifier and Type | Method and Description |
---|---|
Advice.Dispatcher.OffsetMapping.Target |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.Dispatcher.OffsetMapping.Context context)
Resolves an offset mapping to a given target offset.
|
protected ForArgument(TypeDescription.Generic target, Advice.Argument argument)
target
- The type expected by the advice method.argument
- The annotation for which the mapping is to be created.protected ForArgument(ParameterDescription parameterDescription, boolean readOnly, Assigner.Typing typing)
parameterDescription
- The mapped parameter.readOnly
- true
if the mapping is read-only.typing
- The typing to apply.protected ForArgument(TypeDescription.Generic target, int index, boolean readOnly, Assigner.Typing typing)
target
- The type expected by the advice method.index
- The index of the parameter.readOnly
- Determines if the parameter is to be treated as read-only.typing
- The typing to apply.public Advice.Dispatcher.OffsetMapping.Target resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.Dispatcher.OffsetMapping.Context context)
Advice.Dispatcher.OffsetMapping
resolve
in interface Advice.Dispatcher.OffsetMapping
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method for which the mapping is to be resolved.assigner
- The assigner to use.context
- The context in which the offset mapping is applied.Copyright © 2014–2017. All rights reserved.