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

Class ConditionNode

A control-flow node that branches based on a condition.

Import path

import java

Direct supertypes

Indirect supertypes

Predicates

getABranchSuccessor

Gets a true- or false-successor of the ConditionNode.

getAFalseSuccessor

Gets a false-successor of the ConditionNode.

getATrueSuccessor

Gets a true-successor of the ConditionNode.

getCondition

Gets the condition of this ConditionNode.

Inherited predicates

asCall

Gets the call this Node corresponds to, if any.

from Node
asExpr

Gets the expression this Node corresponds to, if any.

from Node
asStmt

Gets the statement this Node corresponds to, if any.

from Node
getANormalSuccessor

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

from Node
getAPredecessor

Gets an immediate predecessor of this node.

from Node
getASuccessor

Gets an immediate successor of this node.

from Node
getAnExceptionSuccessor

Gets an exception successor of this node.

from Node
getAstNode

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

from Node
getBasicBlock

Gets the basic block that contains this node.

from Node
getEnclosingCallable

Gets the immediately enclosing callable whose body contains this node.

from Node
getEnclosingStmt

Gets the statement containing this node, if any.

from Node
getLocation

Gets the source location for this element.

from Node
toString

Gets a textual representation of this element.

from Node

Charpred