Class RegExp
A Expr 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.swift.regex.internal.ParseRegexDirect supertypes
Indirect 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. |
| getAMode | Gets a mode (if any) of this regular expression in any evaluation. Can be any of: IGNORECASE VERBOSE DOTALL MULTILINE UNICODEBOUNDARY UNICODE |
| 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 a string representing 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 |
| getModeFromPrefix | Gets a mode of this regular expression string if it is defined by a mode prefix. |
| 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
| convertsFrom | from Expr | |
| getAPrimaryQlClass | Gets the name of a primary CodeQL class to which this element belongs. | from Element |
| getConversion | from Expr | |
| getConversion | from Expr | |
| getEnclosingCallable | Gets the nearest | from AstNode |
| getEnclosingDecl | Gets the nearest declaration that contains this AST node, if any. | from AstNode |
| getEnclosingFunction | Gets the nearest function definition that contains this AST node, if any. This includes functions, methods, (de)initializers, and accessors, but not closures. | from AstNode |
| getFile | Gets the primary file where this element occurs. | from Locatable |
| getFullyConverted | from Expr | |
| getFullyUnresolved | from Element | |
| getImmediateType | Gets the type of this expression, if it exists. | from Expr |
| getLocation | Gets the location associated with this element in the code, if it exists. | from Locatable |
| getPrimaryQlClasses | Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs. | from Element |
| getResolveStep | Gets the most immediate element that should substitute this element in the explicit AST, if any. Classes can override this to indicate this node should be in the “hidden” AST, mostly reserved for conversions and syntactic sugar nodes like parentheses. | from Expr |
| getType | Gets the type of this expression, if it exists. | from Expr |
| getUnconverted | from Expr | |
| hasConversions | from Expr | |
| hasLocation | Holds if | from Locatable |
| hasType | Holds if | from Expr |
| isConversion | from Expr | |
| isUnknown | Holds if this element is unknown. | from Element |
| resolve | Gets the element that should substitute this element in the explicit AST, applying | from Element |
| toString | Gets the string representation of this element. | from Element |
| toStringImpl | INTERNAL: Do not use. | from Element |