Package railo.commons.lang

Examples of railo.commons.lang.StringList$Entry


     * @return Variable Definition in a String List
     */
    private static StringList parse(PageContext pc,ParserString ps, boolean doLowerCase) {
        String id=readIdentifier(ps,doLowerCase);
        if(id==null)return null;
        StringList list=new StringList(id);
        CFMLExpressionInterpreter interpreter=null;
       
        while(true) {
            if(ps.forwardIfCurrent('.')) {
              id=readIdentifier(ps,doLowerCase);
              if(id==null)return null;
              list.add(id);
            }
            else if(ps.forwardIfCurrent('[')) {
                if(interpreter==null)interpreter=new CFMLExpressionInterpreter();
                try {
                    list.add(Caster.toString(interpreter.interpretPart(pc,ps)));
                } catch (PageException e) {
                    return null;
                }
                if(!ps.forwardIfCurrent(']')) return null;
                ps.removeSpace();
            }
            else break;
        }
        if(ps.isValidIndex()) return null;
        list.reset();
        return list;
    }
View Full Code Here


   
    public static StringList parse(String var, boolean doLowerCase) {
      ParserString ps = new ParserString(var);
        String id=readIdentifier(ps,doLowerCase);
        if(id==null)return null;
        StringList list=new StringList(id);
       
        while(true) {
            if(ps.forwardIfCurrent('.')) {
              id=readIdentifier(ps,doLowerCase);
              if(id==null)return null;
              list.add(id);
            }
            else break;
        }
        if(ps.isValidIndex()) return null;
        list.reset();
        return list;
    }
View Full Code Here

TOP

Related Classes of railo.commons.lang.StringList$Entry

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.