Class Regexp::RegExpTerm

A regular expression term, that is, a syntactic part of a regular expression literal.

Examples:

((ECMA|Java)[sS]cript)*$
((ECMA|Java)[sS]cript)*
(ECMA|Java)
$

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getAChild

Gets a child term of this term.

getChild

Gets the ith child term of this term.

getLiteral

Gets the regular expression literal this term belongs to.

getLocation

Gets this element’s location.

getNumChild

Gets the number of child terms of this term.

getParent

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

getPredecessor

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

getRawValue

Gets the raw source text of this term.

getSuccessor

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

isInBackwardMatchingContext

Holds if this regular term is in a backward-matching context, that is, it has an enclosing lookbehind assertions.

isInForwardMatchingContext

Holds if this regular term is in a forward-matching context, that is, it has no enclosing lookbehind assertions.

isNullable

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

toString

Gets a textual representation of this element.

Inherited predicates

getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getNumLines

Gets the number of lines covered by this element.

from Locatable
getStartLine

Gets the line on which this element starts.

from Locatable