public static enum Pattern.Flag extends Enum<Pattern.Flag>
| Enum Constant and Description |
|---|
CANON_EQ
Enables canonical equivalence.
|
CASE_INSENSITIVE
Enables case-insensitive matching.
|
COMMENTS
Permits whitespace and comments in pattern.
|
DOTALL
Enables dotall mode.
|
MULTILINE
Enables multiline mode.
|
UNICODE_CASE
Enables Unicode-aware case folding.
|
UNIX_LINES
Enables Unix lines mode.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static Pattern.Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pattern.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pattern.Flag UNIX_LINES
Patternpublic static final Pattern.Flag CASE_INSENSITIVE
Patternpublic static final Pattern.Flag COMMENTS
Patternpublic static final Pattern.Flag MULTILINE
Patternpublic static final Pattern.Flag DOTALL
Patternpublic static final Pattern.Flag UNICODE_CASE
Patternpublic static final Pattern.Flag CANON_EQ
Patternpublic static Pattern.Flag[] values()
for (Pattern.Flag c : Pattern.Flag.values()) System.out.println(c);
public static Pattern.Flag 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 int getValue()
PatternCopyright © 2007-2013. All Rights Reserved.