1 33 34 package bsh; 35 36 class BSHSwitchLabel extends SimpleNode { 37 boolean isDefault; 38 39 public BSHSwitchLabel(int id) { super(id); } 40 41 public Object eval( 42 CallStack callstack, Interpreter interpreter) throws EvalError 43 { 44 if ( isDefault ) 45 return null; SimpleNode label = ((SimpleNode)jjtGetChild(0)); 47 return label.eval( callstack, interpreter ); 48 } 49 } 50 | Popular Tags |