001 package railo.runtime.interpreter.ref.util; 002 003 import railo.runtime.PageContext; 004 import railo.runtime.exp.PageException; 005 import railo.runtime.interpreter.ref.Ref; 006 007 public final class RefUtil { 008 009 /** 010 * transalte a Ref array to a Object array 011 * @param refs 012 * @return objects 013 * @throws PageException 014 */ 015 public static Object[] getValue(PageContext pc,Ref[] refs) throws PageException { 016 Object[] objs=new Object[refs.length]; 017 for(int i=0;i<refs.length;i++) { 018 objs[i]=refs[i].getValue(pc); 019 } 020 return objs; 021 } 022 023 public static boolean eeq(PageContext pc,Ref left,Ref right) throws PageException { 024 // TODO Auto-generated method stub 025 return left.getValue(pc)==right.getValue(pc); 026 } 027 028 029 }