Package FESI.Data

Examples of FESI.Data.ArrayPrototype


            return ESNull.theNull;
        }
        if (what instanceof Vector)
        {
            Vector v = (Vector) what;
            ArrayPrototype retval = new ArrayPrototype(
                    evaluator.getArrayPrototype(), evaluator);
            int l = v.size();
            for (int i = 0; i < l; i++)
            {
                retval.putProperty(i, convertJ2E(v.elementAt(i), evaluator));
            }
            return retval;
        }
        if (what instanceof Hashtable)
        {
            Hashtable t = (Hashtable) what;
            ESObject retval = new ObjectPrototype(
                    evaluator.getObjectPrototype(), evaluator);
            for (Enumeration e = t.keys(); e.hasMoreElements();)
            {
                String next = (String) e.nextElement();
                retval.putProperty(next, convertJ2E(t.get(next), evaluator),
                        next.hashCode());
            }
            return retval;
        }
View Full Code Here


        {
            return null;
        }
        if (what instanceof ArrayPrototype)
        {
            ArrayPrototype a = (ArrayPrototype) what;
            int l = a.size();
            Vector v = new Vector();
            for (int i = 0; i < l; i++)
            {
                Object nj = convertE2J(a.getProperty(i));
                v.addElement(nj);
            }
            return v;
        }
        if (what instanceof ObjectPrototype)
View Full Code Here

TOP

Related Classes of FESI.Data.ArrayPrototype

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.