Class ControlFlowGraph
- java.lang.Object
-
- org.jd.core.v1.service.converter.classfiletojavasyntax.model.cfg.ControlFlowGraph
-
public class ControlFlowGraph extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected DefaultList<BasicBlock>
list
protected Method
method
protected int[]
offsetToLineNumbers
-
Constructor Summary
Constructors Constructor Description ControlFlowGraph(Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultList<BasicBlock>
getBasicBlocks()
int
getLineNumber(int offset)
Method
getMethod()
BasicBlock
getStart()
BasicBlock
newBasicBlock(int fromOffset, int toOffset)
BasicBlock
newBasicBlock(int type, int fromOffset, int toOffset)
BasicBlock
newBasicBlock(int type, int fromOffset, int toOffset, boolean inverseCondition)
BasicBlock
newBasicBlock(int type, int fromOffset, int toOffset, java.util.HashSet<BasicBlock> predecessors)
BasicBlock
newBasicBlock(BasicBlock original)
void
setOffsetToLineNumbers(int[] offsetToLineNumbers)
-
-
-
Field Detail
-
method
protected Method method
-
list
protected DefaultList<BasicBlock> list
-
offsetToLineNumbers
protected int[] offsetToLineNumbers
-
-
Constructor Detail
-
ControlFlowGraph
public ControlFlowGraph(Method method)
-
-
Method Detail
-
getMethod
public Method getMethod()
-
getBasicBlocks
public DefaultList<BasicBlock> getBasicBlocks()
-
getStart
public BasicBlock getStart()
-
newBasicBlock
public BasicBlock newBasicBlock(BasicBlock original)
-
newBasicBlock
public BasicBlock newBasicBlock(int fromOffset, int toOffset)
-
newBasicBlock
public BasicBlock newBasicBlock(int type, int fromOffset, int toOffset)
-
newBasicBlock
public BasicBlock newBasicBlock(int type, int fromOffset, int toOffset, boolean inverseCondition)
-
newBasicBlock
public BasicBlock newBasicBlock(int type, int fromOffset, int toOffset, java.util.HashSet<BasicBlock> predecessors)
-
setOffsetToLineNumbers
public void setOffsetToLineNumbers(int[] offsetToLineNumbers)
-
getLineNumber
public int getLineNumber(int offset)
-
-