Fix tabbing.... Please fix your editors so they do tabbing correctly!!! (Spaces...
[IRC.git] / Robust / src / IR / Tree / ContinueBreakNode.java
1 package IR.Tree;
2
3 public class ContinueBreakNode extends BlockStatementNode {
4   LoopNode ln;
5   boolean isbreak;
6
7   public ContinueBreakNode(boolean isbreak) {
8     this.isbreak=isbreak;
9   }
10
11   public boolean isBreak() {
12     return isbreak;
13   }
14
15   public void setLoop(LoopNode l) {
16     this.ln=l;
17   }
18
19   public String printNode(int indent) {
20     if( isbreak )
21       return "break;";
22     else
23       return "continue;";
24   }
25
26   public int kind() {
27     return Kind.ContinueBreakNode;
28   }
29 }