public static class CFG.Block extends Object implements CFG.IBlock<Tree>
Modifier and Type | Field and Description |
---|---|
static Predicate<CFG.Block> |
IS_CATCH_BLOCK |
Constructor and Description |
---|
Block(int id) |
Modifier and Type | Method and Description |
---|---|
void |
addExitSuccessor(CFG.Block block) |
void |
addFalseSuccessor(CFG.Block successor) |
void |
addTrueSuccessor(CFG.Block successor) |
CaseGroupTree |
caseGroup()
Label is used to contain additional information about a block which is not directly related to CFG structure.
|
List<Tree> |
elements() |
Set<CFG.Block> |
exceptions() |
CFG.Block |
exitBlock() |
CFG.Block |
falseBlock() |
int |
id() |
boolean |
isCatchBlock() |
boolean |
isFinallyBlock() |
boolean |
isInactive() |
boolean |
isMethodExitBlock() |
Set<CFG.Block> |
predecessors() |
void |
setCaseGroup(CaseGroupTree caseGroup) |
Set<CFG.Block> |
successors() |
CFG.Block |
successorWithoutJump()
This method makes the implementation of RSPEC-3626 almost trivial.
|
Tree |
terminator() |
CFG.Block |
trueBlock() |
public int id()
id
in interface CFG.IBlock<Tree>
public List<Tree> elements()
elements
in interface CFG.IBlock<Tree>
public CFG.Block trueBlock()
public CFG.Block falseBlock()
public CFG.Block exitBlock()
public boolean isFinallyBlock()
public boolean isCatchBlock()
public void addTrueSuccessor(CFG.Block successor)
public void addFalseSuccessor(CFG.Block successor)
public void addExitSuccessor(CFG.Block block)
public Set<CFG.Block> successors()
successors
in interface CFG.IBlock<Tree>
@CheckForNull public Tree terminator()
terminator
in interface CFG.IBlock<Tree>
public boolean isInactive()
public boolean isMethodExitBlock()
@CheckForNull public CFG.Block successorWithoutJump()
@CheckForNull public CaseGroupTree caseGroup()
public void setCaseGroup(CaseGroupTree caseGroup)
Copyright © 2012–2018 SonarSource. All rights reserved.