1 29 30 package com.caucho.quercus.program; 31 32 import com.caucho.quercus.env.Env; 33 import com.caucho.quercus.env.NullValue; 34 import com.caucho.quercus.env.Value; 35 import com.caucho.quercus.expr.Expr; 36 import com.caucho.util.L10N; 37 38 import java.util.logging.Logger ; 39 40 43 abstract public class CompiledMethodRef_0 extends CompiledMethodRef { 44 private static final Logger log 45 = Logger.getLogger(CompiledMethodRef_0.class.getName()); 46 private static final L10N L = new L10N(CompiledMethodRef_0.class); 47 48 private String _name; 49 50 public CompiledMethodRef_0(String name) 51 { 52 _name = name; 53 } 54 55 61 public Expr []bindArguments(Env env, Expr fun, Expr []args) 62 { 63 return args; 64 } 65 66 public Value callMethodRef(Env env, Value obj, Value []argValues) 67 { 68 return callMethodRef(env, obj); 69 } 70 71 abstract public Value callMethodRef(Env env, Value obj); 72 73 76 public Value call(Env env, Value []argValues) 77 { 78 return callMethod(env, NullValue.NULL, argValues); 79 } 80 81 public String toString() 82 { 83 return "CompiledMethodRef_0[" + _name + "]"; 84 } 85 } 86 87 | Popular Tags |