public static class Advice.Dispatcher.OffsetMapping.ForParameter extends Object implements Advice.Dispatcher.OffsetMapping
Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.Dispatcher.OffsetMapping.ForParameter.Factory
A factory for creating a
Advice.Dispatcher.OffsetMapping.Target.ForParameter offset mapping. |
Advice.Dispatcher.OffsetMapping.Context, Advice.Dispatcher.OffsetMapping.ForBoxedArguments, Advice.Dispatcher.OffsetMapping.ForBoxedReturnValue, Advice.Dispatcher.OffsetMapping.ForEnterValue, Advice.Dispatcher.OffsetMapping.ForField, Advice.Dispatcher.OffsetMapping.ForIgnored, Advice.Dispatcher.OffsetMapping.ForInstrumentedType, Advice.Dispatcher.OffsetMapping.ForOrigin, Advice.Dispatcher.OffsetMapping.ForParameter, Advice.Dispatcher.OffsetMapping.ForReturnValue, Advice.Dispatcher.OffsetMapping.ForThisReference, Advice.Dispatcher.OffsetMapping.ForThrowable, Advice.Dispatcher.OffsetMapping.ForUserValue<T extends Annotation>, Advice.Dispatcher.OffsetMapping.Illegal, Advice.Dispatcher.OffsetMapping.Target
Modifier | Constructor and Description |
---|---|
protected |
ForParameter(Advice.Argument argument,
TypeDescription targetType)
Creates a new offset mapping for a parameter.
|
protected |
ForParameter(int index,
boolean readOnly,
TypeDescription targetType)
Creates a new offset mapping for a parameter of the instrumented method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
hashCode() |
Advice.Dispatcher.OffsetMapping.Target |
resolve(MethodDescription.InDefinedShape instrumentedMethod,
Advice.Dispatcher.OffsetMapping.Context context)
Resolves an offset mapping to a given target offset.
|
String |
toString() |
protected ForParameter(Advice.Argument argument, TypeDescription targetType)
argument
- The annotation for which the mapping is to be created.targetType
- Determines if the parameter is to be treated as read-only.protected ForParameter(int index, boolean readOnly, TypeDescription targetType)
index
- The index of the parameter.readOnly
- Determines if the parameter is to be treated as read-only.targetType
- The type expected by the advice method.public Advice.Dispatcher.OffsetMapping.Target resolve(MethodDescription.InDefinedShape instrumentedMethod, Advice.Dispatcher.OffsetMapping.Context context)
Advice.Dispatcher.OffsetMapping
resolve
in interface Advice.Dispatcher.OffsetMapping
instrumentedMethod
- The instrumented method for which the mapping is to be resolved.context
- The context in which the offset mapping is applied.Copyright © 2014–2016. All rights reserved.