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