Package org.sonar.java.bytecode.cfg
Class BytecodeCFG.Block
- java.lang.Object
-
- org.sonar.java.bytecode.cfg.BytecodeCFG.Block
-
- All Implemented Interfaces:
CFG.IBlock<Instruction>
- Enclosing class:
- BytecodeCFG
public static class BytecodeCFG.Block extends Object implements CFG.IBlock<Instruction>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Instruction>
elements()
BytecodeCFG.Block
falseSuccessor()
Type
getExceptionType(SemanticModel semanticModel)
int
id()
boolean
isCatchBlock()
boolean
isUncaughtException()
String
printBlock()
Set<BytecodeCFG.Block>
successors()
Instruction
terminator()
BytecodeCFG.Block
trueSuccessor()
-
-
-
Method Detail
-
isCatchBlock
public boolean isCatchBlock()
-
getExceptionType
public Type getExceptionType(SemanticModel semanticModel)
-
isUncaughtException
public boolean isUncaughtException()
-
trueSuccessor
public BytecodeCFG.Block trueSuccessor()
-
falseSuccessor
public BytecodeCFG.Block falseSuccessor()
-
printBlock
public String printBlock()
-
id
public int id()
- Specified by:
id
in interfaceCFG.IBlock<Instruction>
-
elements
public List<Instruction> elements()
- Specified by:
elements
in interfaceCFG.IBlock<Instruction>
-
terminator
@CheckForNull public Instruction terminator()
- Specified by:
terminator
in interfaceCFG.IBlock<Instruction>
-
successors
public Set<BytecodeCFG.Block> successors()
- Specified by:
successors
in interfaceCFG.IBlock<Instruction>
-
-