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.
|
compareTo, createValueOfMap, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf, valueOf
$isInstance
public static final Pattern.Flag UNIX_LINES
Pattern.UNIX_LINES
public static final Pattern.Flag CASE_INSENSITIVE
Pattern.CASE_INSENSITIVE
public static final Pattern.Flag COMMENTS
Pattern.COMMENTS
public static final Pattern.Flag MULTILINE
Pattern.MULTILINE
public static final Pattern.Flag DOTALL
Pattern.DOTALL
public static final Pattern.Flag UNICODE_CASE
Pattern.UNICODE_CASE
public static final Pattern.Flag CANON_EQ
Pattern.CANON_EQ
public 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()
Pattern
Copyright © 2018. All rights reserved.