public static enum Advice.Dispatcher.OffsetMapping.ForEnterValue extends Enum<Advice.Dispatcher.OffsetMapping.ForEnterValue> implements Advice.Dispatcher.OffsetMapping
Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.Dispatcher.OffsetMapping.ForEnterValue.Factory
A factory for creating a
Advice.Dispatcher.OffsetMapping.ForEnterValue offset mapping. |
Advice.Dispatcher.OffsetMapping.Context, Advice.Dispatcher.OffsetMapping.ForBoxedArguments, Advice.Dispatcher.OffsetMapping.ForBoxedReturnValue, Advice.Dispatcher.OffsetMapping.ForEnterValue, Advice.Dispatcher.OffsetMapping.ForField, Advice.Dispatcher.OffsetMapping.ForIgnored, Advice.Dispatcher.OffsetMapping.ForInstrumentedType, Advice.Dispatcher.OffsetMapping.ForOrigin, Advice.Dispatcher.OffsetMapping.ForParameter, Advice.Dispatcher.OffsetMapping.ForReturnValue, Advice.Dispatcher.OffsetMapping.ForThisReference, Advice.Dispatcher.OffsetMapping.ForThrowable, Advice.Dispatcher.OffsetMapping.ForUserValue<T extends Annotation>, Advice.Dispatcher.OffsetMapping.Illegal, Advice.Dispatcher.OffsetMapping.Target
Enum Constant and Description |
---|
READ_ONLY
Only allows for reading the mapped offset.
|
WRITABLE
Enables writing to the mapped offset.
|
Modifier and Type | Method and Description |
---|---|
static Advice.Dispatcher.OffsetMapping |
of(boolean readOnly)
Resolves an offset mapping for an enter value.
|
Advice.Dispatcher.OffsetMapping.Target |
resolve(MethodDescription.InDefinedShape instrumentedMethod,
Advice.Dispatcher.OffsetMapping.Context context)
Resolves an offset mapping to a given target offset.
|
String |
toString() |
static Advice.Dispatcher.OffsetMapping.ForEnterValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Dispatcher.OffsetMapping.ForEnterValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.Dispatcher.OffsetMapping.ForEnterValue WRITABLE
public static final Advice.Dispatcher.OffsetMapping.ForEnterValue READ_ONLY
public static Advice.Dispatcher.OffsetMapping.ForEnterValue[] values()
for (Advice.Dispatcher.OffsetMapping.ForEnterValue c : Advice.Dispatcher.OffsetMapping.ForEnterValue.values()) System.out.println(c);
public static Advice.Dispatcher.OffsetMapping.ForEnterValue 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 static Advice.Dispatcher.OffsetMapping of(boolean readOnly)
readOnly
- true
if the value is to be treated as read-only.public Advice.Dispatcher.OffsetMapping.Target resolve(MethodDescription.InDefinedShape instrumentedMethod, Advice.Dispatcher.OffsetMapping.Context context)
Advice.Dispatcher.OffsetMapping
resolve
in interface Advice.Dispatcher.OffsetMapping
instrumentedMethod
- The instrumented method for which the mapping is to be resolved.context
- The context in which the offset mapping is applied.public String toString()
toString
in class Enum<Advice.Dispatcher.OffsetMapping.ForEnterValue>
Copyright © 2014–2016. All rights reserved.