Class DjangoRouteRegex
Import path
import semmle.python.web.django.General
Direct supertypes
Inherited predicates
alternation |
Whether the text in the range start,end is an alternation |
from RegExp |
alternationOption |
Whether the text in the range start,end is an alternation and the text in part_start, part_end is one of the options in that alternation. |
from RegExp |
backreference |
Whether the text in the range |
from RegExp |
charRange |
Holds if the character set starting at |
from RegExp |
charSet |
Whether there is a character class, between start (inclusive) and end (exclusive) |
from RegExp |
char_set_child |
Holds if the character set starting at |
from RegExp |
char_set_delimiter |
Helper predicate for chars that could be character-set delimiters. Holds if the (non-escaped) char at |
from RegExp |
char_set_start |
Helper predicate for |
from RegExp |
char_set_start |
Holds if a character set starts between |
from RegExp |
character |
Holds if a simple or escaped character is found between |
from RegExp |
contains |
Whether this contains |
from AstNode |
containsInScope |
Whether this contains |
from AstNode |
defines |
Whether this expression defines variable |
from Expr |
emptyGroup |
Holds if an empty group is found between |
from RegExp |
escapedCharacter |
Holds if an escaped character is found between |
from RegExp |
escapingChar |
Holds if the character at |
from RegExp |
failedToParse |
Holds if the |
from RegExp |
firstItem |
Whether the item at [start, end) is one of the first items to be matched. |
from RegExp |
getAChildNode |
Gets a child node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt(). |
from Expr |
getAFlowNode |
Gets a flow node corresponding directly to this node. NOTE: For some statements and other purely syntactic elements, there may not be a |
from AstNode |
getAMode |
Gets a mode (if any) of this regular expression. Can be any of: DEBUG IGNORECASE LOCALE MULTILINE DOTALL UNICODE VERBOSE |
from RegExp |
getASubExpression |
Gets an immediate (non-nested) sub-expression of this expression |
from Expr |
getAUse |
Gets a data-flow node where this string value is used as a regular expression. |
from RegExp |
getBackrefName |
Gets the name, if it has one, of the back reference in start,end |
from RegExp |
getBackrefNumber |
Gets the number of the back reference in start,end |
from RegExp |
getChar |
Gets the |
from RegExp |
getEnclosingModule |
Gets the module in which this expression occurs |
from Expr |
getGroupName |
Gets the name, if it has one, of the group in start,end |
from RegExp |
getGroupNumber |
Gets the number of the group in start,end |
from RegExp |
getLocation | from Expr | |
getModeFromPrefix |
Gets the mode of this regular expression string if it is defined by a prefix. |
from RegExp |
getParent |
Gets a parent of this expression |
from Expr_ |
getParentNode |
Gets the parent node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt() applied to the parent. |
from AstNode |
getScope |
Gets the scope of this expression |
from Expr |
getText |
Gets the text of this regex |
from RegExp |
group |
Whether the text in the range |
from RegExp |
groupContents |
Matches the contents of a group. |
from RegExp |
hasSideEffects |
Whether this expression may have a side effect (as determined purely from its syntax) |
from Expr |
inCharSet |
Holds if |
from RegExp |
isArtificial |
Whether this syntactic element is artificial, that is it is generated by the compiler and is not present in the source |
from AstNode |
isConstant |
Whether this expression is a constant |
from Expr |
isParenthesised |
Whether the parenthesised property of this expression is true. |
from Expr_ |
isParenthesized |
Whether the parenthesized property of this expression is true. |
from Expr |
item |
Holds if the range |
from RegExp |
lastItem |
Whether the item at [start, end) is one of the last items to be matched. |
from RegExp |
multiples |
Holds if a repetition quantifier is found between |
from RegExp |
negativeLookaheadAssertionGroup |
Holds if a negative lookahead is found between |
from RegExp |
negativeLookbehindAssertionGroup |
Holds if a negative lookbehind is found between |
from RegExp |
nonEscapedCharAt |
Gets the |
from RegExp |
normalCharacter |
Holds if a normal character is found between |
from RegExp |
normalCharacterSequence |
Holds if the range [start:end) consists of only ‘normal’ characters. |
from RegExp |
pointsTo |
Holds if this expression might “point-to” to |
from Expr |
pointsTo |
Holds if this expression might “point-to” to |
from Expr |
pointsTo |
Holds if this expression might “point-to” to |
from Expr |
pointsTo |
Gets a value that this expression might “point-to”. |
from Expr |
positiveLookaheadAssertionGroup |
Holds if a positive lookahead is found between |
from RegExp |
positiveLookbehindAssertionGroup |
Holds if a positive lookbehind is found between |
from RegExp |
qualifiedItem |
Whether the text in the range start,end is a qualified item, where item is a character, a character set or a group. |
from RegExp |
qualifiedPart |
Holds if a qualified part is found between |
from RegExp |
refersTo |
NOTE: |
from Expr |
refersTo |
NOTE: |
from Expr |
refersTo |
NOTE: |
from Expr |
refersTo |
NOTE: |
from Expr |
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. |
from RegExp |
specialCharacter |
Holds if a special character is found between |
from RegExp |
toString |
Gets a textual representation of this element. |
from Expr |
zeroWidthMatch |
Whether the text in the range start, end is a group and can match the empty string. |
from RegExp |