Class RegExpTree.RegExpTreeAtom
java.lang.Object
com.google.javascript.jscomp.regex.RegExpTree
com.google.javascript.jscomp.regex.RegExpTree.RegExpTreeAtom
- Direct Known Subclasses:
RegExpTree.Anchor
,RegExpTree.BackReference
,RegExpTree.Charset
,RegExpTree.Empty
,RegExpTree.NamedBackReference
,RegExpTree.Text
,RegExpTree.UnicodePropertyEscape
,RegExpTree.WordBoundary
- Enclosing class:
RegExpTree
Represents a node that never has children such as an anchor or charset.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.javascript.jscomp.regex.RegExpTree
RegExpTree.Alternation, RegExpTree.Anchor, RegExpTree.BackReference, RegExpTree.CapturingGroup, RegExpTree.Charset, RegExpTree.Concatenation, RegExpTree.Empty, RegExpTree.LookaheadAssertion, RegExpTree.LookbehindAssertion, RegExpTree.NamedBackReference, RegExpTree.NamedCaptureGroup, RegExpTree.RegExpTreeAtom, RegExpTree.Repetition, RegExpTree.Text, RegExpTree.UnicodePropertyEscape, RegExpTree.WordBoundary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.google.common.collect.ImmutableList
<? extends RegExpTree> children()
The children of this node.boolean
True if the regular expression contains an anchor :^
or$
.boolean
True if the presence or absence of an"i"
flag would change the meaning of this regular expression.final int
The number of capturing groups.Methods inherited from class com.google.javascript.jscomp.regex.RegExpTree
appendDebugInfo, appendSourceCode, equals, hasCapturingGroup, hashCode, matchesWholeInput, parseRegExp, simplify, toString
-
Constructor Details
-
RegExpTreeAtom
public RegExpTreeAtom()
-
-
Method Details
-
isCaseSensitive
public boolean isCaseSensitive()Description copied from class:RegExpTree
True if the presence or absence of an"i"
flag would change the meaning of this regular expression.- Specified by:
isCaseSensitive
in classRegExpTree
-
containsAnchor
public boolean containsAnchor()Description copied from class:RegExpTree
True if the regular expression contains an anchor :^
or$
.- Specified by:
containsAnchor
in classRegExpTree
-
numCapturingGroups
public final int numCapturingGroups()Description copied from class:RegExpTree
The number of capturing groups.- Specified by:
numCapturingGroups
in classRegExpTree
-
children
Description copied from class:RegExpTree
The children of this node.- Specified by:
children
in classRegExpTree
-