1 2 23 24 25 26 27 28 29 30 public class ASTIfStatement extends SimpleNode { 31 32 ASTIfStatement(int id) { 33 super(id); 34 } 35 36 37 public void interpret() 38 { 39 jjtGetChild(0).interpret(); 40 41 if (((Boolean )stack[top--]).booleanValue()) 42 jjtGetChild(1).interpret(); 43 else if (jjtGetNumChildren() == 3) 44 jjtGetChild(2).interpret(); 45 } 46 47 } 48 | Popular Tags |