public static class Advice.OffsetMapping.ForOrigin extends Object implements Advice.OffsetMapping
Advice.Origin annotation.| Modifier and Type | Class and Description |
|---|---|
protected static class |
Advice.OffsetMapping.ForOrigin.Factory
A factory for a method origin.
|
static interface |
Advice.OffsetMapping.ForOrigin.Renderer
A renderer for an origin pattern element.
|
Advice.OffsetMapping.Context, Advice.OffsetMapping.ForAllArguments, Advice.OffsetMapping.ForArgument, Advice.OffsetMapping.ForEnterValue, Advice.OffsetMapping.ForField, Advice.OffsetMapping.ForInstrumentedMethod, Advice.OffsetMapping.ForInstrumentedType, Advice.OffsetMapping.ForOrigin, Advice.OffsetMapping.ForReturnValue, Advice.OffsetMapping.ForSerializedValue, Advice.OffsetMapping.ForStackManipulation, Advice.OffsetMapping.ForStubValue, Advice.OffsetMapping.ForThisReference, Advice.OffsetMapping.ForThrowable, Advice.OffsetMapping.ForUnusedValue, Advice.OffsetMapping.Target| Constructor and Description |
|---|
ForOrigin(List<Advice.OffsetMapping.ForOrigin.Renderer> renderers)
Creates a new offset mapping for an origin value.
|
| Modifier and Type | Method and Description |
|---|---|
static Advice.OffsetMapping |
parse(String pattern)
Parses a pattern of an origin annotation.
|
Advice.OffsetMapping.Target |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.OffsetMapping.Context context)
Resolves an offset mapping to a given target offset.
|
public ForOrigin(List<Advice.OffsetMapping.ForOrigin.Renderer> renderers)
renderers - The renderers to apply.public static Advice.OffsetMapping parse(String pattern)
pattern - The supplied pattern.public Advice.OffsetMapping.Target resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.OffsetMapping.Context context)
Advice.OffsetMappingresolve in interface Advice.OffsetMappinginstrumentedType - 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.