Package org.sonar.plugins.php.api.cfg
Class ControlFlowGraph
java.lang.Object
org.sonar.plugins.php.api.cfg.ControlFlowGraph
The Control Flow Graph
for a PHP script or for the body of a function.
Each node of the graph represents a list of elements which are executed sequentially. Each node has:
- one ore more successor blocks,
- zero or more predecessor blocks.
A Control Flow Graph has a single start node and a single end node. The end node has no successor and no element. WARNING: This is an experimental API, it may change without notice.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionblocks()Includes start and end blocksstatic ControlFlowGraphWARNING: This is an experimental API, it may change without notice.static ControlFlowGraphbuild(Tree tree, CheckContext context) WARNING: This is an experimental API, it may change without notice.end()start()
-
Field Details
-
KINDS_WITH_CONTROL_FLOW
-
-
Method Details
-
build
WARNING: This is an experimental API, it may change without notice. -
build
WARNING: This is an experimental API, it may change without notice. -
start
-
end
-
blocks
Includes start and end blocks
-