MCPcopy Index your code
hub / github.com/beanshell/beanshell / BSHReturnStatement

Class BSHReturnStatement

src/bsh/BSHReturnStatement.java:29–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27package bsh;
28
29class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected