| 9314 | } |
| 9315 | |
| 9316 | static public class MethodParamExpr implements Expr, MaybePrimitiveExpr{ |
| 9317 | final Class c; |
| 9318 | |
| 9319 | public MethodParamExpr(Class c){ |
| 9320 | this.c = c; |
| 9321 | } |
| 9322 | |
| 9323 | public Object eval() { |
| 9324 | throw Util.runtimeException("Can't eval"); |
| 9325 | } |
| 9326 | |
| 9327 | public void emit(C context, ObjExpr objx, GeneratorAdapter gen){ |
| 9328 | throw Util.runtimeException("Can't emit"); |
| 9329 | } |
| 9330 | |
| 9331 | public boolean hasJavaClass() { |
| 9332 | return c != null; |
| 9333 | } |
| 9334 | |
| 9335 | public Class getJavaClass() { |
| 9336 | return c; |
| 9337 | } |
| 9338 | |
| 9339 | public boolean canEmitPrimitive(){ |
| 9340 | return Util.isPrimitive(c); |
| 9341 | } |
| 9342 | |
| 9343 | public void emitUnboxed(C context, ObjExpr objx, GeneratorAdapter gen){ |
| 9344 | throw Util.runtimeException("Can't emit"); |
| 9345 | } |
| 9346 | } |
| 9347 | |
| 9348 | public static class CaseExpr implements Expr, MaybePrimitiveExpr{ |
| 9349 | public final LocalBindingExpr expr; |
nothing calls this directly
no outgoing calls
no test coverage detected