public static enum TransformationMode.Mode extends java.lang.Enum<TransformationMode.Mode>
Enum Constant and Description |
---|
MATCH_ONLY
Perform pattern matching only without transformation.
|
REPLACE_ALL
Replace all the occurrences of the pattern, if possible.
|
REPLACE_ANY
Replace a randomly selected occurrence of the pattern.
|
REPLACE_FIRST
Replace only the first occurrence of the pattern.
|
REPLACE_LAST
Replace only the last occurrence of the pattern.
|
Modifier and Type | Method and Description |
---|---|
static TransformationMode.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransformationMode.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransformationMode.Mode REPLACE_FIRST
public static final TransformationMode.Mode REPLACE_LAST
public static final TransformationMode.Mode REPLACE_ANY
public static final TransformationMode.Mode REPLACE_ALL
public static final TransformationMode.Mode MATCH_ONLY
public static TransformationMode.Mode[] values()
for (TransformationMode.Mode c : TransformationMode.Mode.values()) System.out.println(c);
public static TransformationMode.Mode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null