1 29 30 package com.caucho.quercus.program; 31 32 import com.caucho.quercus.Location; 33 import com.caucho.quercus.env.Env; 34 import com.caucho.quercus.env.Value; 35 import com.caucho.quercus.expr.Expr; 36 import com.caucho.quercus.expr.ExprFactory; 37 import com.caucho.util.L10N; 38 39 import java.util.ArrayList ; 40 import java.util.logging.Logger ; 41 42 45 public class MethodDeclaration extends Function 46 { 47 private static final Logger log = Logger.getLogger(MethodDeclaration.class.getName()); 48 private static final L10N L = new L10N(MethodDeclaration.class); 49 50 private final ClassDef _qClass; 51 52 public MethodDeclaration(ExprFactory exprFactory, 53 Location location, 54 ClassDef qClass, 55 String name, 56 FunctionInfo info, 57 ArrayList <Arg> argList) 58 { 59 super(exprFactory, location, 60 name, info, argList, new ArrayList <Statement>()); 61 62 _qClass = qClass; 63 } 64 65 public boolean isAbstract() 66 { 67 return true; 68 } 69 70 public boolean isObjectMethod() 71 { 72 return true; 73 } 74 75 81 public Expr []bindArguments(Env env, Expr fun, Expr []args) 82 { 83 throw new UnsupportedOperationException (); 84 } 85 86 89 public Value call(Env env, Value []args) 90 { 91 throw new UnsupportedOperationException (); 92 } 93 94 public String toString() 95 { 96 return "MethodFunction[" + getName() + "]"; 97 } 98 } 99 100 | Popular Tags |