CodeQL library for Java/Kotlin
codeql/java-all 7.3.1 (changelog, source)
Search

Class ControlFlow::Node

A node in the expression-level control-flow graph.

Import path

import java

Direct supertypes

Known direct subtypes

Predicates

asCall

Gets the call this Node corresponds to, if any.

asExpr

Gets the expression this Node corresponds to, if any.

asStmt

Gets the statement this Node corresponds to, if any.

getANormalSuccessor

Gets a successor of this node that is neither an exception successor nor a jump (break, continue, return).

getAPredecessor

Gets an immediate predecessor of this node.

getASuccessor

Gets an immediate successor of this node.

getAnExceptionSuccessor

Gets an exception successor of this node.

getAstNode

Gets the most appropriate AST node for this control flow node, if any.

getBasicBlock

Gets the basic block that contains this node.

getEnclosingCallable

Gets the immediately enclosing callable whose body contains this node.

getEnclosingStmt

Gets the statement containing this node, if any.

getLocation

Gets the source location for this element.

toString

Gets a textual representation of this element.