Package railo.runtime.util

Examples of railo.runtime.util.IteratorWrapper


     * @throws PageException
     */
    public static Iterator toIterator(Object o) throws PageException {
        if(o instanceof Iterator) return (Iterator)o;
        else if(o instanceof Iteratorable) return ((Iteratorable)o).keysAsStringIterator();
        else if(o instanceof Enumeration) return new IteratorWrapper((Enumeration)o);
        else if(o instanceof JavaObject) {
          String[] names = ClassUtil.getFieldNames(((JavaObject)o).getClazz());
          return new ArrayIterator(names);
        }
        else if(o instanceof ObjectWrap) return toIterator(((ObjectWrap)o).getEmbededObject());
View Full Code Here

TOP

Related Classes of railo.runtime.util.IteratorWrapper

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.