static final class RegExpTree.Charset extends RegExpTree.RegExpTreeAtom
RegExpTree.Alternation, RegExpTree.Anchor, RegExpTree.BackReference, RegExpTree.CapturingGroup, RegExpTree.Charset, RegExpTree.Concatenation, RegExpTree.DecomposedCharset, RegExpTree.Empty, RegExpTree.LookaheadAssertion, RegExpTree.RegExpTreeAtom, RegExpTree.Repetition, RegExpTree.Text, RegExpTree.WordBoundary| Modifier and Type | Field and Description |
|---|---|
(package private) CharRanges |
ieExplicits
Code units that were mentioned explicitly and that might be matched by
a group according to ECMAScript 5 but would not because of specification
violations in IE.
|
(package private) CharRanges |
ranges |
| Constructor and Description |
|---|
Charset(CharRanges ranges,
CharRanges ieExplicits) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendDebugInfo(java.lang.StringBuilder sb) |
protected void |
appendSourceCode(java.lang.StringBuilder sb)
Appends this regular expression source to the given buffer.
|
private static int |
complexityWordFolded(CharRanges ranges) |
private static int |
complexityWordFoldedHelper(CharRanges ranges) |
(package private) RegExpTree.DecomposedCharset |
decompose() |
private RegExpTree.DecomposedCharset |
decompose(CharRanges ranges,
boolean inverted) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isCaseSensitive()
True if the presence or absence of an
"i" flag would change the
meaning of this regular expression. |
RegExpTree |
simplify(java.lang.String flags)
Returns a simpler regular expression that is semantically the same assuming
the given flags.
|
children, containsAnchor, numCapturingGroupsescapeCharOnto, hasCapturingGroup, matchesWholeInput, parseRegExp, toStringfinal CharRanges ranges
final CharRanges ieExplicits
Charset(CharRanges ranges, CharRanges ieExplicits)
private static int complexityWordFolded(CharRanges ranges)
private static int complexityWordFoldedHelper(CharRanges ranges)
public RegExpTree simplify(java.lang.String flags)
RegExpTreesimplify in class RegExpTreeflags - Regular expression flags, e.g. "igm".public boolean isCaseSensitive()
RegExpTree"i" flag would change the
meaning of this regular expression.isCaseSensitive in class RegExpTree.RegExpTreeAtomprivate RegExpTree.DecomposedCharset decompose(CharRanges ranges, boolean inverted)
protected void appendSourceCode(java.lang.StringBuilder sb)
RegExpTreeappendSourceCode in class RegExpTreeRegExpTree.DecomposedCharset decompose()
protected void appendDebugInfo(java.lang.StringBuilder sb)
appendDebugInfo in class RegExpTreepublic boolean equals(java.lang.Object o)
equals in class RegExpTreepublic int hashCode()
hashCode in class RegExpTree