public static enum Advice.OffsetMapping.ForInstrumentedMethod extends Enum<Advice.OffsetMapping.ForInstrumentedMethod> implements Advice.OffsetMapping
Advice.OffsetMapping.Context, Advice.OffsetMapping.Factory<T extends Annotation>, 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| Enum Constant and Description |
|---|
CONSTRUCTOR
A constant that must be a
Constructor instance. |
EXECUTABLE
A constant that must be a
java.lang.reflect.Executable instance. |
METHOD
A constant that must be a
Method instance. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
isRepresentable(MethodDescription instrumentedMethod)
Checks if the supplied method is representable for the assigned offset mapping.
|
Advice.OffsetMapping.Target |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.OffsetMapping.Context context)
Resolves an offset mapping to a given target offset.
|
static Advice.OffsetMapping.ForInstrumentedMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.OffsetMapping.ForInstrumentedMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.OffsetMapping.ForInstrumentedMethod METHOD
Method instance.public static final Advice.OffsetMapping.ForInstrumentedMethod CONSTRUCTOR
Constructor instance.public static final Advice.OffsetMapping.ForInstrumentedMethod EXECUTABLE
java.lang.reflect.Executable instance.public static Advice.OffsetMapping.ForInstrumentedMethod[] values()
for (Advice.OffsetMapping.ForInstrumentedMethod c : Advice.OffsetMapping.ForInstrumentedMethod.values()) System.out.println(c);
public static Advice.OffsetMapping.ForInstrumentedMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic 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.protected abstract boolean isRepresentable(MethodDescription instrumentedMethod)
instrumentedMethod - The instrumented method to represent.true if this method is representable.Copyright © 2014–2017. All rights reserved.