public enum PatternFlag extends Enum<PatternFlag>
Enum Constant and Description |
---|
CASE_INSENSITIVE |
COMMENTS |
DOTALL |
MULTILINE |
UNICODE_CASE |
UNICODE_CHARACTER_CLASS |
UNIX_LINES |
Modifier and Type | Method and Description |
---|---|
static int |
parseFlags(char[] flags) |
static String |
parseFlags(int flags) |
static PatternFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PatternFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PatternFlag UNIX_LINES
public static final PatternFlag CASE_INSENSITIVE
public static final PatternFlag COMMENTS
public static final PatternFlag MULTILINE
public static final PatternFlag DOTALL
public static final PatternFlag UNICODE_CASE
public static final PatternFlag UNICODE_CHARACTER_CLASS
public static PatternFlag[] values()
for (PatternFlag c : PatternFlag.values()) System.out.println(c);
public static PatternFlag 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 int parseFlags(char[] flags)
public static String parseFlags(int flags)
Copyright © 2024. All rights reserved.