start of new file
[IRC.git] / Robust / src / IR / Tree / IfStatementNode.java
index 419f0de34f18bedf3d558d10238e9e3ad62c66f0..c24a703996f01d0154f805ad9fdb7e0dfcb5f9e5 100644 (file)
@@ -10,6 +10,18 @@ public class IfStatementNode extends BlockStatementNode {
        this.true_st=true_st;
        this.else_st=else_st;
     }
+
+    public ExpressionNode getCondition() {
+       return cond;
+    }
+
+    public BlockNode getTrueBlock() {
+       return true_st;
+    }
+
+    public BlockNode getFalseBlock() {
+       return else_st;
+    }
     
     public String printNode(int indent) {
        if (else_st==null)