1 29 30 package com.caucho.quercus.function; 31 32 import com.caucho.quercus.env.Env; 33 import com.caucho.quercus.env.Value; 34 import com.caucho.quercus.expr.Expr; 35 36 public class ReferenceMarshal extends Marshal 37 { 38 public static final Marshal MARSHAL = new ReferenceMarshal(); 39 40 public boolean isReadOnly() 41 { 42 return false; 43 } 44 45 public boolean isReference() 46 { 47 return true; 48 } 49 50 public Object marshal(Env env, Expr expr, Class expectedClass) 51 { 52 return expr.evalRef(env); 54 } 55 56 public Value unmarshal(Env env, Object value) 57 { 58 throw new UnsupportedOperationException (); 59 } 60 } 61 | Popular Tags |