(Environment env, Object value)
| 286 | return code.append(')').toString(); |
| 287 | } |
| 288 | public Object eval(Environment env, Object value) { |
| 289 | if (!(value instanceof JavaFunction)) |
| 290 | throw new StoneException("bad function", this); |
| 291 | JavaFunction func = (JavaFunction)value; |
| 292 | Object[] args = new Object[numChildren() + 1]; |
| 293 | args[0] = env; |
| 294 | int num = 1; |
| 295 | for (ASTree a: this) |
| 296 | args[num++] = ((chap6.BasicEvaluator.ASTreeEx)a).eval(env); |
| 297 | return func.invoke(args); |
| 298 | } |
| 299 | } |
| 300 | @Reviser public static class VarStmntEx3 extends TypeChecker.VarStmntEx2 { |
| 301 | public VarStmntEx3(List<ASTree> c) { super(c); } |
nothing calls this directly
no test coverage detected