public static enum Advice.OffsetMapping.ForStubValue extends Enum<Advice.OffsetMapping.ForStubValue> implements Advice.OffsetMapping, Advice.OffsetMapping.Factory<Advice.StubValue>
null if the return type is not primitive or void.Advice.OffsetMapping.Factory<T extends Annotation>, 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.TargetAdvice.OffsetMapping.Factory.AdviceType, Advice.OffsetMapping.Factory.Illegal<T extends Annotation>, Advice.OffsetMapping.Factory.Simple<T extends Annotation>| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
Class<Advice.StubValue> |
getAnnotationType()
Returns the annotation type of this factory.
|
Advice.OffsetMapping |
make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.StubValue> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
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.ForStubValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.OffsetMapping.ForStubValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.OffsetMapping.ForStubValue INSTANCE
public static Advice.OffsetMapping.ForStubValue[] values()
for (Advice.OffsetMapping.ForStubValue c : Advice.OffsetMapping.ForStubValue.values()) System.out.println(c);
public static Advice.OffsetMapping.ForStubValue 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.public Class<Advice.StubValue> getAnnotationType()
getAnnotationType in interface Advice.OffsetMapping.Factory<Advice.StubValue>public Advice.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<Advice.StubValue> annotation, Advice.OffsetMapping.Factory.AdviceType adviceType)
make in interface Advice.OffsetMapping.Factory<Advice.StubValue>target - The parameter description for which to resolve an offset mapping.annotation - The annotation that triggered this factory.adviceType - true if the binding is applied using advice method delegation.null if no mapping can be resolved for this parameter.Copyright © 2014–2025. All rights reserved.