public abstract static class RegExpTree.RegExpTreeAtom extends 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 and Description |
---|
RegExpTreeAtom() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<? extends RegExpTree> |
children()
The children of this node.
|
boolean |
containsAnchor()
True if the regular expression contains an anchor :
^ or $ . |
boolean |
isCaseSensitive()
True if the presence or absence of an
"i" flag would change the
meaning of this regular expression. |
int |
numCapturingGroups()
The number of capturing groups.
|
appendDebugInfo, appendSourceCode, equals, hasCapturingGroup, hashCode, matchesWholeInput, parseRegExp, simplify, toString
public boolean isCaseSensitive()
RegExpTree
"i"
flag would change the
meaning of this regular expression.isCaseSensitive
in class RegExpTree
public boolean containsAnchor()
RegExpTree
^
or $
.containsAnchor
in class RegExpTree
public final int numCapturingGroups()
RegExpTree
numCapturingGroups
in class RegExpTree
public final com.google.common.collect.ImmutableList<? extends RegExpTree> children()
RegExpTree
children
in class RegExpTree
Copyright © 2009-2020 Google. All Rights Reserved.