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
public abstract static class RegExpTree.RegExpTreeAtom extends 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 Constructor Description RegExpTreeAtom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<? extends RegExpTree>children()The children of this node.booleancontainsAnchor()True if the regular expression contains an anchor :^or$.booleanisCaseSensitive()True if the presence or absence of an"i"flag would change the meaning of this regular expression.intnumCapturingGroups()The number of capturing groups.-
Methods inherited from class com.google.javascript.jscomp.regex.RegExpTree
appendDebugInfo, appendSourceCode, equals, hasCapturingGroup, hashCode, matchesWholeInput, parseRegExp, simplify, toString
-
-
-
-
Method Detail
-
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
public final com.google.common.collect.ImmutableList<? extends RegExpTree> children()
Description copied from class:RegExpTreeThe children of this node.- Specified by:
childrenin classRegExpTree
-
-