Package | Description |
---|---|
com.google.javascript.jscomp.regex |
Modifier and Type | Class and Description |
---|---|
static class |
RegExpTree.Alternation
Represents the possibilities ["foo", "bar" ] for a RegExp /foo|bar/
|
static class |
RegExpTree.Anchor
Represents an anchor, namely ^ or $.
|
static class |
RegExpTree.BackReference
Represents a reference to a previous group such as \1 or \2
|
static class |
RegExpTree.CapturingGroup
Represents a capturing group such as (asdf)
|
static class |
RegExpTree.Charset
Represents a set of possible characters structured as [a-zA-Z] or [^a-zA-Z]
|
static class |
RegExpTree.Concatenation
Represents a series of nodes chained one after another such as (?:...)[a-z]*(...)
|
static class |
RegExpTree.Empty
Represents an empty portion of a RegExp such as the middle of "||"
|
static class |
RegExpTree.LookaheadAssertion
Represents a lookahead assertion such as (?=...) or (?!...)
|
static class |
RegExpTree.LookbehindAssertion
Represents a lookbehind assertion such as
(?<=...) or (?<!...) |
static class |
RegExpTree.NamedBackReference
Represents a reference to a previous named group
|
static class |
RegExpTree.NamedCaptureGroup
Represents a named capture group
|
static class |
RegExpTree.RegExpTreeAtom
Represents a node that never has children such as an anchor or charset.
|
static class |
RegExpTree.Repetition
Represents a repeating item such as ...+, ...*, or ...{0,1}
|
static class |
RegExpTree.Text
Represents a run of non-special characters such as "foobar"
|
static class |
RegExpTree.UnicodePropertyEscape
Represents a Unicode Property Escape such as in /\p{Script=Greek}/u
|
static class |
RegExpTree.WordBoundary
Represents \b or \B
|
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.NamedBackReference.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.LookbehindAssertion.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.CapturingGroup.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.NamedCaptureGroup.simplify(java.lang.String flags) |
RegExpTree |
RegExpTree.UnicodePropertyEscape.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.
|
com.google.common.collect.ImmutableList<? extends RegExpTree> |
RegExpTree.RegExpTreeAtom.children() |
com.google.common.collect.ImmutableList<? extends RegExpTree> |
RegExpTree.Repetition.children() |
com.google.common.collect.ImmutableList<? extends RegExpTree> |
RegExpTree.Alternation.children() |
com.google.common.collect.ImmutableList<? extends RegExpTree> |
RegExpTree.LookaheadAssertion.children() |
com.google.common.collect.ImmutableList<? extends RegExpTree> |
RegExpTree.LookbehindAssertion.children() |
com.google.common.collect.ImmutableList<? extends RegExpTree> |
RegExpTree.CapturingGroup.children() |
com.google.common.collect.ImmutableList<? extends RegExpTree> |
RegExpTree.NamedCaptureGroup.children() |
com.google.common.collect.ImmutableList<? 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.
|
Copyright © 2009-2018 Google. All Rights Reserved.