CodeQL library for Java
codeql/java-all 0.3.2 (changelog, source)
Search

Module ReDoSUtilSpecific

This module should provide a class hierarchy corresponding to a parse tree of regular expressions. This is the interface to the shared ReDoS library.

Import path

import semmle.code.java.security.performance.ReDoSUtilSpecific

Imports

FileSystem

Provides classes for working with files and folders.

RegexTreeView

Provides a class hierarchy corresponding to a parse tree of regular expressions.

Predicates

isEscapeClass

Holds if term is an escape class representing e.g. \d. clazz is which character class it represents, e.g. “d” for \d.

isExcluded

Holds if the regular expression should not be considered.

isPossessive

Holds if term is a possessive quantifier, e.g. a*+.

matchesAnyPrefix

Holds if the regex that term is part of is used in a way that ignores any leading prefix of the input it’s matched against.

matchesAnySuffix

Holds if the regex that term is part of is used in a way that ignores any trailing suffix of the input it’s matched against.

Modules

RegExpFlags

A module containing predicates for determining which flags a regular expression have.