checking in new files
[IRC.git] / Robust / src / IR / Tree / BlockNode.java
1 package IR.Tree;
2 import java.util.Vector;
3
4 class BlockNode extends TreeNode {
5     Vector blockstatements;
6     public BlockNode() {
7         blockstatements=new Vector();
8     }
9
10     public void addBlockStatement(BlockStatementNode bsn) {
11         blockstatements.add(bsn);
12     }
13
14     public String printNode() {
15         String st="{\n";
16         for(int i=0;i<blockstatements.size();i++) {
17             BlockStatementNode bsn=(BlockStatementNode)blockstatements.get(i);
18             st+=bsn.printNode()+"\n";
19         }
20         st+="}\n";
21         return st;
22     }
23 }