Class Impl::RegExpLiteral
A string literal used as a regular expression.
As an optimisation, only regexes containing an infinite repitition quatifier (+
, *
, or {x,}
)
and therefore may be relevant for ReDoS queries are considered.
Import path
import semmle.code.java.regex.RegexTreeView
Direct supertypes
Indirect supertypes
Fields
Predicates
getChild | Gets the |
getFlags | Get a string representing all modes for this regex. |
getPrimaryQLClass | Gets the primary QL class for this regex. |
getRegex | Gets the associated regex. |
isDotAll | Holds if dot, |
isIgnoreCase | Holds if this regex matching is case-insensitive for this regex. |
toString | Gets a textual representation of this element. |
Inherited predicates
getAChild | Gets a child term . | from RegExpParent |
getLastChild | Gets the last child term of this element. | from RegExpParent |
getNumChild | Gets the number of child terms. | from RegExpParent |