3 public class IfStatementNode extends BlockStatementNode {
8 public IfStatementNode(ExpressionNode cond, BlockNode true_st, BlockNode else_st) {
14 public ExpressionNode getCondition() {
18 public BlockNode getTrueBlock() {
22 public BlockNode getFalseBlock() {
26 public String printNode(int indent) {
28 return "if("+cond.printNode(indent)+") "+true_st.printNode(indent);
30 return "if("+cond.printNode(indent)+") "+true_st.printNode(indent)+" else "+ else_st.printNode(indent);
33 return Kind.IfStatementNode;