public class RegularBlockImpl extends SingleSuccessorBlockImpl implements RegularBlock
Block.BlockType| Modifier and Type | Field and Description | 
|---|---|
protected java.util.List<Node> | 
contents
Internal representation of the contents. 
 | 
flowRule, successorid, lastId, predecessors, type| Constructor and Description | 
|---|
RegularBlockImpl()
Initialize an empty basic block to be filled with contents and linked to other basic blocks
 later. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addNode(Node t)
Add a node to the contents of this basic block. 
 | 
void | 
addNodes(java.util.List<? extends Node> ts)
Add multiple nodes to the contents of this basic block. 
 | 
java.util.List<Node> | 
getContents()  | 
BlockImpl | 
getRegularSuccessor()  | 
boolean | 
isEmpty()
Is this block empty (i.e., does it not contain any contents). 
 | 
java.lang.String | 
toString()  | 
getFlowRule, getSuccessor, setFlowRule, setSuccessoraddPredecessor, getId, getPredecessors, getType, removePredecessorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFlowRule, getSuccessor, setFlowRuleprotected java.util.List<Node> contents
public RegularBlockImpl()
public void addNode(Node t)
public void addNodes(java.util.List<? extends Node> ts)
public java.util.List<Node> getContents()
getContents in interface RegularBlockNodes.public BlockImpl getRegularSuccessor()
getRegularSuccessor in interface RegularBlockpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isEmpty()
RegularBlockisEmpty in interface RegularBlock