public static interface Advice.OffsetMapping
Modifier and Type | Interface and Description |
---|---|
static interface |
Advice.OffsetMapping.Factory<T extends Annotation>
Represents a factory for creating a
Advice.OffsetMapping for a given parameter for a given annotation. |
static class |
Advice.OffsetMapping.ForAllArguments
An offset mapping that maps an array containing all arguments of the instrumented method.
|
static class |
Advice.OffsetMapping.ForArgument
An offset mapping for a given parameter of the instrumented method.
|
static class |
Advice.OffsetMapping.ForEnterValue
An offset mapping that provides access to the value that is returned by the enter advice.
|
static class |
Advice.OffsetMapping.ForExitValue
An offset mapping that provides access to the value that is returned by the exit advice.
|
static class |
Advice.OffsetMapping.ForField
An offset mapping for a field.
|
static class |
Advice.OffsetMapping.ForInstrumentedMethod
Maps a constant representing the instrumented method.
|
static class |
Advice.OffsetMapping.ForInstrumentedType
Maps the declaring type of the instrumented method.
|
static class |
Advice.OffsetMapping.ForLocalValue
An offset mapping that provides access to a named local variable that is declared by the advice methods via
Advice.Local . |
static class |
Advice.OffsetMapping.ForOrigin
An offset mapping for the
Advice.Origin annotation. |
static class |
Advice.OffsetMapping.ForReturnValue
An offset mapping that provides access to the value that is returned by the instrumented method.
|
static class |
Advice.OffsetMapping.ForSerializedValue
An offset mapping that loads a serialized value.
|
static class |
Advice.OffsetMapping.ForStackManipulation
An offset mapping for binding a stack manipulation.
|
static class |
Advice.OffsetMapping.ForStubValue
An offset mapping for a parameter where assignments are fully ignored and that is assigned a boxed version of the instrumented
method's return value or
null if the return type is not primitive or void . |
static class |
Advice.OffsetMapping.ForThisReference
An offset mapping that provides access to the
this reference of the instrumented method. |
static class |
Advice.OffsetMapping.ForThrowable
An offset mapping for accessing a
Throwable of the instrumented method. |
static class |
Advice.OffsetMapping.ForUnusedValue
An offset mapping for a parameter where assignments are fully ignored and that always return the parameter type's default value.
|
static class |
Advice.OffsetMapping.Sort
Describes the sort of the executed advice.
|
static interface |
Advice.OffsetMapping.Target
A target offset of an offset mapping.
|
Modifier and Type | Method and Description |
---|---|
Advice.OffsetMapping.Target |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
Advice.OffsetMapping.Sort sort)
Resolves an offset mapping to a given target offset.
|
Advice.OffsetMapping.Target resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort)
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method for which the mapping is to be resolved.assigner
- The assigner to use.argumentHandler
- The argument handler to use for resolving offsets of the local variable array of the instrumented method.sort
- The sort of the advice method being resolved.Copyright © 2014–2022. All rights reserved.