| 27 | package bsh; |
| 28 | |
| 29 | class BSHReturnStatement extends SimpleNode implements ParserConstants |
| 30 | { |
| 31 | public int kind; |
| 32 | |
| 33 | BSHReturnStatement(int id) { super(id); } |
| 34 | |
| 35 | public Object eval(CallStack callstack, Interpreter interpreter) |
| 36 | throws EvalError |
| 37 | { |
| 38 | Object value; |
| 39 | if(jjtGetNumChildren() > 0) |
| 40 | value = ((SimpleNode)jjtGetChild(0)).eval(callstack, interpreter); |
| 41 | else |
| 42 | value = Primitive.VOID; |
| 43 | |
| 44 | return new ReturnControl( kind, value, this ); |
| 45 | } |
| 46 | } |
| 47 |
nothing calls this directly
no outgoing calls
no test coverage detected