Class RegExp
A StringlikeLiteral
containing a regular expression term, that is, either
a regular expression literal, or a string literal used in a context where
it is parsed as regular expression.
Import path
import codeql.ruby.regexp.internal.ParseRegExp
Direct supertypes
Known direct subtypes
Predicates
alternation | Whether the text in the range start,end is an alternation |
alternationOption | Whether the text in the range start,end is an alternation and the text in partStart, partEnd is one of the options in that alternation. |
backreference | Whether the text in the range |
charRange | Holds if the character set starting at |
charSet | Whether there is a character class, between start (inclusive) and end (exclusive) |
charSetChild | Holds if the character set starting at |
charSetDelimiter | Helper predicate for chars that could be character-set delimiters. Holds if the (non-escaped) char at |
charSetStart | Helper predicate for |
charSetStart | Holds if a character set starts between |
character | Holds if a simple or escaped character is found between |
emptyGroup | Holds if an empty group is found between |
escapedCharacter | Holds if an escaped character is found between |
escapingChar | Holds if the character at |
failedToParse | Holds if the |
firstItem | Whether the item at [start, end) is one of the first items to be matched. |
getBackRefName | Gets the name, if it has one, of the back reference in start,end |
getBackRefNumber | Gets the number of the back reference in start,end |
getChar | Gets the |
getCharacterPropertyName | Gets the name of the character property in start,end |
getFlags | Gets the flags for this |
getGroupName | Gets the name, if it has one, of the group in start,end |
getGroupNumber | Gets the number of the group in start,end |
getText | Gets the text of this regex |
group | Whether the text in the range |
groupContents | Matches the contents of a group. |
inCharSet | Holds if the character at |
inPosixBracket | Holds if the character at |
isDotAll | Holds if this |
isIgnoreCase | Holds if this |
item | Holds if the range |
lastItem | Whether the item at [start, end) is one of the last items to be matched. |
multiples | Holds if a repetition quantifier is found between |
namedBackreference | Matches a named backreference, e.g. |
namedCharacterProperty | Matches named character properties such as |
namedCharacterPropertyIsInverted | Holds if the named character property is inverted. Examples for which it holds: - |
negativeLookaheadAssertionGroup | Holds if a negative lookahead is found between |
negativeLookbehindAssertionGroup | Holds if a negative lookbehind is found between |
nonEscapedCharAt | Gets the |
normalCharacter | Holds if a normal character is found between |
normalCharacterSequence | Holds if the range [start:end) consists of only ‘normal’ characters. |
numberedBackreference | Matches a numbered backreference, e.g. |
positiveLookaheadAssertionGroup | Holds if a positive lookahead is found between |
positiveLookbehindAssertionGroup | Holds if a positive lookbehind is found between |
qualifiedItem | Whether the text in the range start,end is a qualified item, where item is a character, a character set or a group. |
qualifiedPart | Holds if a qualified part is found between |
sequence | Whether the text in the range start,end is a sequence of 1 or more items, where an item is a character, a character set or a group. |
specialCharacter | Holds if a special character is found between |
zeroWidthMatch | Whether the text in the range start, end is a group and can match the empty string. |
Inherited predicates
getAChild | Gets a child node of this | from AstNode |
getAChild | Gets a child of this node, which can also be retrieved using a predicate named | from StringlikeLiteral |
getAControlFlowEntryNode | Gets a control-flow entry node for this statement, if any | from Stmt |
getAControlFlowNode | Gets a control-flow node for this statement, if any. | from Stmt |
getAPrimaryQlClass | Gets the name of a primary CodeQL class to which this node belongs. | from AstNode |
getCfgScope | Gets the control-flow scope of this statement, if any. | from Stmt |
getComponent | Gets the | from StringlikeLiteral |
getConstantValue | Gets the constant value of this expression, if any. | from Expr |
getDesugared | Gets the desugared version of this AST node, if any. | from AstNode |
getEnclosingCallable | Gets the enclosing callable, if any. | from Stmt |
getEnclosingMethod | Gets the enclosing method, if any. | from AstNode |
getEnclosingModule | Gets the enclosing module, if any. | from AstNode |
getEnclosingToplevel | Gets the enclosing top-level. | from AstNode |
getFile | Gets the file of this node. | from AstNode |
getLocation | Gets the location of this node. | from AstNode |
getNumberOfComponents | Gets the number of components in this string or string-like literal. | from StringlikeLiteral |
getParent | Gets the parent of this | from AstNode |
getPrimaryQlClasses | Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs. | from AstNode |
isSynthesized | Holds if this node was synthesized to represent an implicit AST node not present in the source code. In the following example method call, the receiver is an implicit | from AstNode |
toString | Gets a textual representation of this node. | from AstNode |