public static class Advice.Dispatcher.OffsetMapping.ForReturnValue extends Object implements Advice.Dispatcher.OffsetMapping
Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.Dispatcher.OffsetMapping.ForReturnValue.Factory
A factory for creating a
Advice.Dispatcher.OffsetMapping.ForReturnValue 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 |
ForReturnValue(TypeDescription.Generic target,
Advice.Return annotation)
Creates a new offset mapping for a return value.
|
protected |
ForReturnValue(TypeDescription.Generic target,
boolean readOnly,
Assigner.Typing typing)
Creates a new offset mapping for a return value.
|
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 ForReturnValue(TypeDescription.Generic target, Advice.Return annotation)
target
- The type that the advice method expects for the return value.annotation
- The annotation being bound.protected ForReturnValue(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing)
target
- The type that the advice method expects for the return value.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.