public static class Advice.Dispatcher.OffsetMapping.ForThisReference extends Object implements Advice.Dispatcher.OffsetMapping
this
reference of the instrumented method.Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.Dispatcher.OffsetMapping.ForThisReference.Factory
A factory for creating a
Advice.Dispatcher.OffsetMapping.ForThisReference 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 |
ForThisReference(boolean readOnly,
boolean optional,
TypeDescription targetType)
Creates a new offset mapping for a
this reference. |
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 ForThisReference(boolean readOnly, boolean optional, TypeDescription targetType)
this
reference.readOnly
- Determines if the parameter is to be treated as read-only.optional
- true
if the parameter should be bound to null
if the instrumented method is static.targetType
- The type that the advice method expects for the this
reference.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.