1 29 30 package com.caucho.quercus.expr; 31 32 import com.caucho.quercus.Location; 33 import com.caucho.quercus.env.Env; 34 import com.caucho.quercus.env.NullValue; 35 import com.caucho.quercus.env.Value; 36 37 40 public class RequiredExpr extends Expr { 41 public static final RequiredExpr REQUIRED = new RequiredExpr(Location.UNKNOWN); 42 43 public RequiredExpr(Location location) 44 { 45 super(location); 46 } 47 48 public RequiredExpr() 49 { 50 super(); 51 } 52 53 60 public Value eval(Env env) 61 { 62 env.warning("required argument missing"); 63 64 return NullValue.NULL; 65 } 66 67 public String toString() 68 { 69 return "required"; 70 } 71 } 72 73 | Popular Tags |