From 281a893dc1aba2732a30f862b667222ced31f21a Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 10 Feb 2009 00:25:17 +0000 Subject: [PATCH] Continue/Break node --- Robust/src/IR/Tree/ContinueBreakNode.java | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Robust/src/IR/Tree/ContinueBreakNode.java diff --git a/Robust/src/IR/Tree/ContinueBreakNode.java b/Robust/src/IR/Tree/ContinueBreakNode.java new file mode 100644 index 00000000..074c9a67 --- /dev/null +++ b/Robust/src/IR/Tree/ContinueBreakNode.java @@ -0,0 +1,29 @@ +package IR.Tree; + +public class ContinueBreakNode extends BlockStatementNode { + LoopNode ln; + boolean isbreak; + + public ContinueBreakNode(boolean isbreak) { + this.isbreak=isbreak; + } + + public boolean isBreak() { + return isbreak; + } + + public void setLoop(LoopNode l) { + this.ln=l; + } + + public String printNode(int indent) { + if( isbreak ) + return "break;"; + else + return "continue;"; + } + + public int kind() { + return Kind.ContinueBreakNode; + } +} -- 2.34.1