| 2367 | } |
| 2368 | |
| 2369 | static class UnresolvedVarExpr implements Expr{ |
| 2370 | public final Symbol symbol; |
| 2371 | |
| 2372 | public UnresolvedVarExpr(Symbol symbol){ |
| 2373 | this.symbol = symbol; |
| 2374 | } |
| 2375 | |
| 2376 | public boolean hasJavaClass(){ |
| 2377 | return false; |
| 2378 | } |
| 2379 | |
| 2380 | public Class getJavaClass() { |
| 2381 | throw new IllegalArgumentException( |
| 2382 | "UnresolvedVarExpr has no Java class"); |
| 2383 | } |
| 2384 | |
| 2385 | public void emit(C context, ObjExpr objx, GeneratorAdapter gen){ |
| 2386 | } |
| 2387 | |
| 2388 | public Object eval() { |
| 2389 | throw new IllegalArgumentException( |
| 2390 | "UnresolvedVarExpr cannot be evalled"); |
| 2391 | } |
| 2392 | } |
| 2393 | |
| 2394 | static class NumberExpr extends LiteralExpr implements MaybePrimitiveExpr{ |
| 2395 | final Number n; |
nothing calls this directly
no outgoing calls
no test coverage detected