public final class RegexOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RegexOptions.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
ALWAYS_EAGER_NAME |
static RegexOptions |
DEFAULT |
static String |
DUMP_AUTOMATA_NAME |
static String |
REGRESSION_TEST_MODE_NAME |
static String |
STEP_EXECUTION_NAME |
static String |
U180E_WHITESPACE_NAME |
static String |
UTF_16_EXPLODE_ASTRAL_SYMBOLS_NAME |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
RegexFeatureSet |
getFeatureSet()
The set of features that the regex compilers will be able to support.
|
RegexFlavor |
getFlavor() |
int |
hashCode() |
boolean |
isAlwaysEager()
Always match capture groups eagerly.
|
boolean |
isDumpAutomata()
Produce ASTs and automata in JSON, DOT (GraphViz) and LaTeX formats.
|
boolean |
isRegressionTestMode() |
boolean |
isStepExecution()
Trace the execution of automata in JSON files.
|
boolean |
isU180EWhitespace() |
boolean |
isUTF16ExplodeAstralSymbols()
Explode astral symbols (
0x10000 - 0x10FFFF) into sub-automata where every state
matches one char as opposed to one code point. |
static RegexOptions.Builder |
newBuilder() |
static RegexOptions |
parse(String optionsString) |
String |
toString() |
RegexOptions |
withoutUTF16ExplodeAstralSymbols()
TODO: remove this.
|
public static final String U180E_WHITESPACE_NAME
public static final String REGRESSION_TEST_MODE_NAME
public static final String DUMP_AUTOMATA_NAME
public static final String STEP_EXECUTION_NAME
public static final String ALWAYS_EAGER_NAME
public static final String UTF_16_EXPLODE_ASTRAL_SYMBOLS_NAME
public static final RegexOptions DEFAULT
public static RegexOptions.Builder newBuilder()
public static RegexOptions parse(String optionsString) throws RegexSyntaxException
RegexSyntaxExceptionpublic boolean isU180EWhitespace()
public boolean isRegressionTestMode()
public boolean isDumpAutomata()
public boolean isStepExecution()
public boolean isAlwaysEager()
public boolean isUTF16ExplodeAstralSymbols()
0x10000 - 0x10FFFF) into sub-automata where every state
matches one char as opposed to one code point.
TODO: enabled by default - disable.public RegexOptions withoutUTF16ExplodeAstralSymbols()
public RegexFlavor getFlavor()
public RegexFeatureSet getFeatureSet()