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.QuercusClass; 35 import com.caucho.quercus.env.Value; 36 37 40 public class ClassDefStatement extends Statement { 41 protected InterpretedClassDef _cl; 42 43 public ClassDefStatement(Location location, InterpretedClassDef cl) 44 { 45 super(location); 46 47 _cl = cl; 48 } 49 50 public Value execute(Env env) 51 { 52 if (env.findClass(_cl.getName()) == null) { 53 QuercusClass qClass = new QuercusClass(_cl, null); 54 55 qClass.validate(env); 56 throw new UnsupportedOperationException (); 58 } 59 60 return null; 61 } 62 } 63 64 | Popular Tags |