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.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 |
ForThisReference(TypeDescription.Generic target,
Advice.This annotation)
Creates a new offset mapping for a
this reference. |
protected |
ForThisReference(TypeDescription.Generic target,
boolean readOnly,
Assigner.Typing typing,
boolean optional)
Creates a new offset mapping for a
this reference. |
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 ForThisReference(TypeDescription.Generic target, Advice.This annotation)
this
reference.target
- The type that the advice method expects for the this
reference.annotation
- The mapped annotation.protected ForThisReference(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, boolean optional)
this
reference.target
- The type that the advice method expects for the this
reference.readOnly
- Determines if the parameter is to be treated as read-only.typing
- The typing to apply.optional
- true
if the parameter should be bound to null
if the instrumented method is static.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.