1 29 30 package com.caucho.quercus.program; 31 32 import com.caucho.quercus.env.Env; 33 import com.caucho.quercus.env.Value; 34 import com.caucho.quercus.expr.Expr; 35 import com.caucho.util.L10N; 36 37 import java.util.logging.Logger ; 38 39 42 abstract public class CompiledMethod_0 extends CompiledMethod { 43 private static final Logger log 44 = Logger.getLogger(CompiledMethod_0.class.getName()); 45 private static final L10N L = new L10N(CompiledMethod_0.class); 46 47 private String _name; 48 49 public CompiledMethod_0(String name) 50 { 51 _name = name; 52 } 53 54 60 public Expr []bindArguments(Env env, Expr fun, Expr []args) 61 { 62 if (args.length != 0) 63 env.warning(L.l("too many arguments")); 64 65 return args; 66 } 67 68 public Value callMethod(Env env, Value obj, Value []argValues) 69 { 70 return callMethod(env, obj); 71 } 72 73 abstract public Value callMethod(Env env, Value obj); 74 75 public String toString() 76 { 77 return "CompiledMethod_0[" + _name + "]"; 78 } 79 } 80 81 | Popular Tags |