public class ControlFlowGraph extends Object
Each node of the graph represents a list of elements which are executed one after the other. Each node has:
| Modifier and Type | Method and Description |
|---|---|
Set<ControlFlowBlock> |
blocks() |
static ControlFlowGraph |
build(BlockTree body) |
static ControlFlowGraph |
build(ScriptTree tree) |
Set<SyntaxToken> |
disconnectingJumps(ControlFlowBlock block) |
ControlFlowNode |
end() |
ControlFlowBlock |
getStartingBlock(StatementTree nonEmptyStatementTree) |
ControlFlowNode |
start() |
Set<ControlFlowBlock> |
unreachableBlocks() |
public static ControlFlowGraph build(ScriptTree tree)
public static ControlFlowGraph build(BlockTree body)
public ControlFlowNode start()
public ControlFlowNode end()
public Set<ControlFlowBlock> blocks()
public Set<ControlFlowBlock> unreachableBlocks()
public Set<SyntaxToken> disconnectingJumps(ControlFlowBlock block)
public ControlFlowBlock getStartingBlock(StatementTree nonEmptyStatementTree)
Copyright © 2011–2016 SonarSource and Eriks Nukis. All rights reserved.