protected static enum Advice.Dispatcher.OffsetMapping.ForThisReference.Factory extends Enum<Advice.Dispatcher.OffsetMapping.ForThisReference.Factory> implements Advice.Dispatcher.OffsetMapping.Factory
Advice.Dispatcher.OffsetMapping.ForThisReference
offset mapping.Enum Constant and Description |
---|
READ_ONLY
A factory that does not allow writing to the mapped parameter.
|
READ_WRITE
A factory that allows writing to the mapped parameter.
|
UNDEFINED
Modifier and Type | Method and Description |
---|---|
Advice.Dispatcher.OffsetMapping |
make(ParameterDescription.InDefinedShape parameterDescription)
Creates a new offset mapping for the supplied parameter if possible.
|
String |
toString() |
static Advice.Dispatcher.OffsetMapping.ForThisReference.Factory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Dispatcher.OffsetMapping.ForThisReference.Factory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.Dispatcher.OffsetMapping.ForThisReference.Factory READ_ONLY
public static final Advice.Dispatcher.OffsetMapping.ForThisReference.Factory READ_WRITE
public static Advice.Dispatcher.OffsetMapping.ForThisReference.Factory[] values()
for (Advice.Dispatcher.OffsetMapping.ForThisReference.Factory c : Advice.Dispatcher.OffsetMapping.ForThisReference.Factory.values()) System.out.println(c);
public static Advice.Dispatcher.OffsetMapping.ForThisReference.Factory 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.Dispatcher.OffsetMapping make(ParameterDescription.InDefinedShape parameterDescription)
Advice.Dispatcher.OffsetMapping.Factory
make
in interface Advice.Dispatcher.OffsetMapping.Factory
parameterDescription
- The parameter description for which to resolve an offset mapping.null
if no mapping can be resolved for this parameter.public String toString()
toString
in class Enum<Advice.Dispatcher.OffsetMapping.ForThisReference.Factory>
Copyright © 2014–2017. All rights reserved.