public static enum Advice.OffsetMapping.ForSelfCallHandle extends Enum<Advice.OffsetMapping.ForSelfCallHandle> implements Advice.OffsetMapping
Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.OffsetMapping.ForSelfCallHandle.Factory
A factory for a self call method handle.
|
Advice.OffsetMapping.ForAllArguments, Advice.OffsetMapping.ForArgument, Advice.OffsetMapping.ForDynamicConstant, Advice.OffsetMapping.ForEnterValue, Advice.OffsetMapping.ForExitValue, Advice.OffsetMapping.ForField, Advice.OffsetMapping.ForFieldHandle, Advice.OffsetMapping.ForHandle, 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 |
---|
BOUND
A bound assignment that invokes the instrumented method as is.
|
UNBOUND
An unbound self call handle which requires manual assignment of parameters.
|
Modifier and Type | Method and Description |
---|---|
protected abstract StackManipulation |
decorate(MethodDescription methodDescription,
StackManipulation stackManipulation)
Resolves a stack manipulation.
|
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.ForSelfCallHandle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.OffsetMapping.ForSelfCallHandle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.OffsetMapping.ForSelfCallHandle BOUND
public static final Advice.OffsetMapping.ForSelfCallHandle UNBOUND
public static Advice.OffsetMapping.ForSelfCallHandle[] values()
for (Advice.OffsetMapping.ForSelfCallHandle c : Advice.OffsetMapping.ForSelfCallHandle.values()) System.out.println(c);
public static Advice.OffsetMapping.ForSelfCallHandle 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.OffsetMapping
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.protected abstract StackManipulation decorate(MethodDescription methodDescription, StackManipulation stackManipulation)
methodDescription
- The method description being represented.stackManipulation
- The stack manipulation for the current method handle.Copyright © 2014–2025. All rights reserved.