public static enum IRegExpLiteralNode.RegExpFlag extends Enum<IRegExpLiteralNode.RegExpFlag>
Enum Constant and Description |
---|
DOTALL
s - Specifies whether the dot character (.) in a regular
expression pattern matches new-line characters. |
EXTENDED
x - Specifies whether to use extended mode for the
regular expression. |
GLOBAL
g -Specifies whether to use global matching for the
regular expression. |
IGNORECASE
i - Specifies whether the regular expression ignores
case sensitivity. |
MULTILINE
m - If it is set, the caret (^) and dollar sign ($) in a
regular expression match before and after new lines. |
Modifier and Type | Method and Description |
---|---|
char |
getCode()
Returns the char that represents this flag
|
static IRegExpLiteralNode.RegExpFlag |
toFlag(char flag)
Converts a char to its corresponding flag
|
static IRegExpLiteralNode.RegExpFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IRegExpLiteralNode.RegExpFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IRegExpLiteralNode.RegExpFlag DOTALL
s
- Specifies whether the dot character (.) in a regular
expression pattern matches new-line characters.public static final IRegExpLiteralNode.RegExpFlag EXTENDED
x
- Specifies whether to use extended mode for the
regular expression. When a RegExp object is in extended mode, white
space characters in the constructor string are ignored.public static final IRegExpLiteralNode.RegExpFlag GLOBAL
g
-Specifies whether to use global matching for the
regular expression.public static final IRegExpLiteralNode.RegExpFlag IGNORECASE
i
- Specifies whether the regular expression ignores
case sensitivity.public static final IRegExpLiteralNode.RegExpFlag MULTILINE
m
- If it is set, the caret (^) and dollar sign ($) in a
regular expression match before and after new lines.public static IRegExpLiteralNode.RegExpFlag[] values()
for (IRegExpLiteralNode.RegExpFlag c : IRegExpLiteralNode.RegExpFlag.values()) System.out.println(c);
public static IRegExpLiteralNode.RegExpFlag 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 IRegExpLiteralNode.RegExpFlag toFlag(char flag)
flag
- the char representing the flag: g, i, m, s or xIRegExpLiteralNode.RegExpFlag
or nullpublic char getCode()
Copyright © 2016 The Apache Software Foundation. All rights reserved.