public abstract class RegexFlavor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BACKREFERENCES_TO_UNMATCHED_GROUPS_FAIL |
protected static int |
EMPTY_CHECKS_MONITOR_CAPTURE_GROUPS |
protected static int |
FAILING_EMPTY_CHECKS_DONT_BACKTRACK |
protected static int |
NESTED_CAPTURE_GROUPS_KEPT_ON_LOOP_REENTRY |
| Modifier | Constructor and Description |
|---|---|
protected |
RegexFlavor(int traits) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
backreferencesToUnmatchedGroupsFail() |
boolean |
canHaveEmptyLoopIterations() |
boolean |
emptyChecksMonitorCaptureGroups() |
boolean |
failingEmptyChecksDontBacktrack() |
abstract RegexFlavorProcessor |
forRegex(RegexSource source)
Given a
RegexSource, returns a RegexFlavorProcessor that can be used to parse
and translate the flavored regex into an ECMAScript regex. |
boolean |
nestedCaptureGroupsKeptOnLoopReentry() |
protected static final int BACKREFERENCES_TO_UNMATCHED_GROUPS_FAIL
protected static final int EMPTY_CHECKS_MONITOR_CAPTURE_GROUPS
protected static final int NESTED_CAPTURE_GROUPS_KEPT_ON_LOOP_REENTRY
protected static final int FAILING_EMPTY_CHECKS_DONT_BACKTRACK
public abstract RegexFlavorProcessor forRegex(RegexSource source)
RegexSource, returns a RegexFlavorProcessor that can be used to parse
and translate the flavored regex into an ECMAScript regex.public boolean backreferencesToUnmatchedGroupsFail()
public boolean emptyChecksMonitorCaptureGroups()
public boolean nestedCaptureGroupsKeptOnLoopReentry()
public boolean failingEmptyChecksDontBacktrack()
public boolean canHaveEmptyLoopIterations()