CodeQL library for JavaScript
codeql/javascript-all 0.4.1 (changelog, source)
Search

Class Routing::RouteSetup

A node representing a place where one or more routes are installed onto a mutable router object.

The children of this node are the individual route handlers installed here.

The siblings of this node are the other route setups locally affecting the same router, in the order in which they are installed.

In case of branching control flow, the siblings are non-linear, that is, some route setups will have multiple previous/next siblings, reflecting the different paths the program may take during setup.

Import path

import javascript

Direct supertypes

Indirect supertypes

Predicates

getRouter

Gets the router affected by this route setup.

Inherited predicates

definitelyResumesDispatch

Like mayResumeDispatch but without the assumption that functions with an unknown implementation invoke their continuation.

from Node
getAChild

Gets a child of this node in the routing tree.

from Node
getFirstChild

Gets the first child of this node in the routing tree.

from Node
getLastChild

Gets the last child of this node in the routing tree.

from Node
getNextSibling

Gets the next sibling of this node in the routing tree.

from Node
getOwnHttpMethod

Gets an HTTP method name which this node will accept, or nothing if the node accepts all HTTP methods, not taking into account the context from ancestors or children nodes.

from Node
getParent

Gets the parent of this node in the routing tree.

from Node
getPreviousSibling

Gets the previous sibling of this node in the routing tree.

from Node
getRelativePath

Gets a path prefix to be matched against the path of incoming requests.

from Node
getRootNode

Gets the root node of this node in the routing tree.

from Node
getRouteInstallation

Gets a place where this route node is installed as a route handler.

from Node
getValueImplicitlyStoredInAccessPath

Gets a node whose value can be accessed via the given access path on the nth route handler parameter, from any route handler that follows after this one.

from Node
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from Node
isGuardedBy

Holds if the middleware corresponding to node has processed the incoming request strictly prior to this node.

from Node
isGuardedByNode

Holds if node has processed the incoming request strictly prior to this node.

from Node
mayResumeDispatch

Holds if this node may invoke its continuation after having dispatched the request to its children, that is, the incoming request may be partially processed by this subtree, and subsequently passed on to the successor.

from Node
toString

Gets a textual representation of this element.

from Node