Class RegExpTree.Text
java.lang.Object
com.google.javascript.jscomp.regex.RegExpTree
com.google.javascript.jscomp.regex.RegExpTree.RegExpTreeAtom
com.google.javascript.jscomp.regex.RegExpTree.Text
- Enclosing class:
RegExpTree
Represents a run of non-special characters such as "foobar"
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidAppends this regular expression source to the given buffer.booleaninthashCode()booleanTrue if the presence or absence of an"i"flag would change the meaning of this regular expression.Returns a simpler regular expression that is semantically the same assuming the given flags.Methods inherited from class com.google.javascript.jscomp.regex.RegExpTree.RegExpTreeAtom
children, containsAnchor, numCapturingGroupsMethods inherited from class com.google.javascript.jscomp.regex.RegExpTree
hasCapturingGroup, matchesWholeInput, parseRegExp, toString
-
Method Details
-
simplify
Description copied from class:RegExpTreeReturns a simpler regular expression that is semantically the same assuming the given flags.- Specified by:
simplifyin classRegExpTree- Parameters:
flags- Regular expression flags, e.g."igm".
-
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.- Overrides:
isCaseSensitivein classRegExpTree.RegExpTreeAtom
-
appendSourceCode
Description copied from class:RegExpTreeAppends this regular expression source to the given buffer.- Specified by:
appendSourceCodein classRegExpTree
-
appendDebugInfo
- Specified by:
appendDebugInfoin classRegExpTree
-
equals
- Specified by:
equalsin classRegExpTree
-
hashCode
public int hashCode()- Specified by:
hashCodein classRegExpTree
-