public static enum Advice.OffsetMapping.ForInstrumentedMethod extends Enum<Advice.OffsetMapping.ForInstrumentedMethod> implements Advice.OffsetMapping
Advice.OffsetMapping.Factory<T extends Annotation>, Advice.OffsetMapping.ForAllArguments, Advice.OffsetMapping.ForArgument, Advice.OffsetMapping.ForEnterValue, Advice.OffsetMapping.ForExitValue, Advice.OffsetMapping.ForField, Advice.OffsetMapping.ForFieldHandle, Advice.OffsetMapping.ForInstrumentedMethod, Advice.OffsetMapping.ForInstrumentedType, Advice.OffsetMapping.ForLocalValue, Advice.OffsetMapping.ForOrigin, Advice.OffsetMapping.ForReturnValue, Advice.OffsetMapping.ForSelfCallHandle, Advice.OffsetMapping.ForSerializedValue, Advice.OffsetMapping.ForStackManipulation, Advice.OffsetMapping.ForStubValue, Advice.OffsetMapping.ForThisReference, Advice.OffsetMapping.ForThrowable, Advice.OffsetMapping.ForUnusedValue, Advice.OffsetMapping.Sort, 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. |
METHOD_HANDLE
A constant that must be a
java.lang.invoke.MethodHandle instance. |
METHOD_TYPE
A constant that must be a
java.lang.invoke.MethodType 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.
|
protected abstract Advice.OffsetMapping.Target |
resolve(MethodDescription.InDefinedShape methodDescription)
Resolves the target for a given method 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.
|
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 final Advice.OffsetMapping.ForInstrumentedMethod METHOD_HANDLE
java.lang.invoke.MethodHandle instance.public static final Advice.OffsetMapping.ForInstrumentedMethod METHOD_TYPE
java.lang.invoke.MethodType 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.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort)
resolve in interface Advice.OffsetMappinginstrumentedType - 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.protected abstract boolean isRepresentable(MethodDescription instrumentedMethod)
instrumentedMethod - The instrumented method to represent.true if this method is representable.protected abstract Advice.OffsetMapping.Target resolve(MethodDescription.InDefinedShape methodDescription)
methodDescription - The method description for which to resolve a constant.Copyright © 2014–2025. All rights reserved.