MCPcopy Index your code
hub / github.com/clojure/clojure / MethodParamExpr

Class MethodParamExpr

src/jvm/clojure/lang/Compiler.java:9316–9346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9314 }
9315
9316static 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
9348public static class CaseExpr implements Expr, MaybePrimitiveExpr{
9349 public final LocalBindingExpr expr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected