Package | Description |
---|---|
com.google.javascript.jscomp.regex |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
RegExpTree.Alternation |
(package private) static class |
RegExpTree.Anchor |
(package private) static class |
RegExpTree.BackReference |
(package private) static class |
RegExpTree.CapturingGroup |
(package private) static class |
RegExpTree.Charset |
(package private) static class |
RegExpTree.Concatenation |
(package private) static class |
RegExpTree.Empty |
(package private) static class |
RegExpTree.LookaheadAssertion |
(package private) static class |
RegExpTree.RegExpTreeAtom |
(package private) static class |
RegExpTree.Repetition |
(package private) static class |
RegExpTree.Text |
(package private) static class |
RegExpTree.WordBoundary |
Modifier and Type | Field and Description |
---|---|
(package private) RegExpTree |
RegExpTree.Repetition.body |
(package private) RegExpTree |
RegExpTree.LookaheadAssertion.body |
(package private) RegExpTree |
RegExpTree.CapturingGroup.body |
private static RegExpTree |
RegExpTree.NEVER_MATCHES |
Modifier and Type | Field and Description |
---|---|
(package private) com.google.common.collect.ImmutableList<RegExpTree> |
RegExpTree.Alternation.alternatives |
(package private) com.google.common.collect.ImmutableList<RegExpTree> |
RegExpTree.Concatenation.elements |
Modifier and Type | Method and Description |
---|---|
static RegExpTree |
RegExpTree.parseRegExp(java.lang.String pattern,
java.lang.String flags)
Parses a regular expression to an AST.
|
abstract RegExpTree |
RegExpTree.simplify(java.lang.String flags)
Returns a simpler regular expression that is semantically the same assuming
the given flags.
|
RegExpTree |
RegExpTree.Empty.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.Anchor.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.WordBoundary.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.BackReference.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.Text.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.Repetition.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.Alternation.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.LookaheadAssertion.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.CapturingGroup.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.Charset.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.Concatenation.simplify(java.lang.String flags) |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<? extends RegExpTree> |
RegExpTree.children()
The children of this node.
|
java.util.List<? extends RegExpTree> |
RegExpTree.RegExpTreeAtom.children() |
java.util.List<? extends RegExpTree> |
RegExpTree.Repetition.children() |
java.util.List<? extends RegExpTree> |
RegExpTree.Alternation.children() |
java.util.List<? extends RegExpTree> |
RegExpTree.LookaheadAssertion.children() |
java.util.List<? extends RegExpTree> |
RegExpTree.CapturingGroup.children() |
java.util.List<? extends RegExpTree> |
RegExpTree.Concatenation.children() |
Modifier and Type | Method and Description |
---|---|
static boolean |
RegExpTree.matchesWholeInput(RegExpTree t,
java.lang.String flags)
True if, but not necessarily always when the, given regular expression
must match the whole input or none of it.
|
Constructor and Description |
---|
CapturingGroup(RegExpTree body) |
Concatenation(RegExpTree a,
RegExpTree b) |
LookaheadAssertion(RegExpTree body,
boolean positive) |
Repetition(RegExpTree body,
int min,
int max,
boolean greedy) |
Constructor and Description |
---|
Alternation(java.util.List<? extends RegExpTree> alternatives) |
Concatenation(java.util.List<? extends RegExpTree> elements) |