CodeQL library for Ruby
codeql/ruby-all 3.0.1-dev (changelog, source)
Search

Class Impl::RegExpCharacterRange

A character range in a character class in a regular expression.

Example:

a-z

Import path

import codeql.ruby.regexp.RegExpTreeView

Direct supertypes

Indirect supertypes

Fields

Inherited fields

Predicates

getAPrimaryQlClass

Gets the primary QL class for this term.

getChild

Gets the ith child term.

isNullable

Holds if this regular expression term can match the empty string.

isRange

Holds if this range goes from lo to hi, in effect is lo-hi.

Inherited predicates

getAChild

Gets a child term .

from RegExpParent
getAMatchedString

Gets a string that is matched by this regular-expression term.

from RegExpTerm
getConstantValue

Gets the single string this regular-expression term matches.

from RegExpTerm
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
getPrimaryQlClasses

Gets a comma-separated list of the names of the primary CodeQL classes to which this regular expression term belongs.

from RegExpParent
getRawValue

Gets the raw source text of this term.

from RegExpTerm
getRegExp

Gets the associated RegExp.

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
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
toString

Gets a textual representation of this element.

from RegExpTerm

Charpred