package jayanth.junction;

public class IfNode implements AST_Node {
    AST_Node condition;
    AST_Node body1; //evaluate body1 if condition is true 
    AST_Node body2; //else evaluate body1

    public IfNode(AST_Node condition, AST_Node body1, AST_Node body2) {
        this.condition = condition;
        this.body1 = body1;
        this.body2 = body2;
    }

    JunObject accept(AST_Visitor visitor, JunFrame frame) {
        return visitor.visit(this, frame);
    }
}

@@ -62,24 +62,32 @@
 _Node %7B%0A    
+private 
 AST_Node con
@@ -94,24 +94,32 @@
 dition;%0A    
+private 
 AST_Node bod
@@ -165,16 +165,24 @@
 ue %0A    
+private 
 AST_Node
@@ -387,16 +387,23 @@
  %7D%0A%0A    
+public 
 JunObjec
@@ -498,11 +498,203 @@
 );%0A    %7D
+%0A%0A    public AST_Node getCondition() %7B%0A        return condition;%0A    %7D%0A    public AST_Node getBody1() %7B%0A        return body1;%0A    %7D%0A    public AST_Node getBody2() %7B%0A        return body2;%0A    %7D
 %0A%7D%0A

Add getters