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

Class Impl::RegExpPlus

A plus-quantified term.

Example:

\w+

Import path

import semmle.code.java.regex.RegexTreeView

Direct supertypes

Indirect supertypes

Inherited fields

Predicates

getPrimaryQLClass

Gets the primary QL class for this term.

Inherited predicates

getAChild

Gets a child term .

from RegExpParent
getChild

Gets the ith child term.

from RegExpQuantifier
getEnd

Gets the offset at which this term ends.

from RegExpTerm
getFile

Gets the file in which this term is found.

from RegExpTerm
getLastChild

Gets the last child term of this element.

from RegExpParent
getLiteral

Gets the string literal in which this term is found.

from RegExpTerm
getLocation

Gets the location of the surrounding regex, as locations inside the regex do not exist. To get location information corresponding to the term inside the regex, use hasLocationInfo.

from RegExpTerm
getNumChild

Gets the number of child terms.

from RegExpParent
getParent

Gets the parent term of this regular expression term, or the regular expression literal if this is the root term.

from RegExpTerm
getPredecessor

Gets the regular expression term that is matched (textually) before this one, if any.

from RegExpTerm
getQuantifier

Gets the quantifier for this term. That is e.g “?” for “a?”.

from RegExpQuantifier
getRawValue

Gets the raw source text of this term.

from RegExpTerm
getRegex

Gets the associated regex.

from RegExpTerm
getRootTerm

Gets the outermost term of this regular expression.

from RegExpTerm
getStart

Gets the offset at which this term starts.

from RegExpTerm
getSuccessor

Gets the regular expression term that is matched (textually) after this one, if any.

from RegExpTerm
hasLocationInfo

Holds if this term is found at the specified location offsets.

from RegExpTerm
isPossessive

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

from RegExpQuantifier
isRootTerm

Holds if this is the root term of a regular expression.

from RegExpTerm
isUsedAsRegExp

Holds if this term is part of a string literal that is interpreted as a regular expression.

from RegExpTerm
mayBeEmpty

Holds if this term may match zero times.

from RegExpQuantifier
mayRepeatForever

Holds if this term may match an unlimited number of times.

from RegExpQuantifier
occursInRegex

Holds if this term occurs in regex inRe offsets startOffset to endOffset.

from RegExpTerm
toString

Gets a textual representation of this element.

from RegExpTerm

Charpred