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.booleanTrue if the regular expression contains an anchor :^or$.booleanTrue if the presence or absence of an"i"flag would change the meaning of this regular expression.final intThe 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:RegExpTreeTrue if the presence or absence of an"i"flag would change the meaning of this regular expression.- Specified by:
isCaseSensitivein classRegExpTree
-
containsAnchor
public boolean containsAnchor()Description copied from class:RegExpTreeTrue if the regular expression contains an anchor :^or$.- Specified by:
containsAnchorin classRegExpTree
-
numCapturingGroups
public final int numCapturingGroups()Description copied from class:RegExpTreeThe number of capturing groups.- Specified by:
numCapturingGroupsin classRegExpTree
-
children
Description copied from class:RegExpTreeThe children of this node.- Specified by:
childrenin classRegExpTree
-