Package com.floreysoft.jmte.token

Examples of com.floreysoft.jmte.token.ForEachToken.advance()


    token1.setIterable((Iterable) token1.evaluate(context));
    context.model.enterScope();
    context.push(token1);
    try {
      while (token1.iterator().hasNext()) {
        context.model.put(token1.getVarName(), token1.advance());
        addSpecialVariables(token1, context.model);

        // ${foreach item.list item2}
        ForEachToken token2 = new ForEachToken(Arrays
            .asList(new String[] { "item", "list" }), "item.list",
View Full Code Here


        context.model.enterScope();
        context.push(token2);
        try {
          while (token2.iterator().hasNext()) {
            context.model
                .put(token2.getVarName(), token2.advance());
            addSpecialVariables(token2, context.model);

            // OUTER_PRFIX
            buffer.append("OUTER_PRFIX");
View Full Code Here

    context.model.enterScope();
    context.push(token1);
    try {
      while (token1.iterator().hasNext()) {
        context.model.put(token1.getVarName(), token1.advance());
        addSpecialVariables(token1, context.model);

        buffer.append(new StringToken(Arrays.asList(new String[] {
            "item", "property1" }), "item.property1")
            .evaluate(context));
View Full Code Here

        }
      } else {

        while (feToken.iterator().hasNext()) {

          context.model.put(feToken.getVarName(), feToken.advance());
          addSpecialVariables(feToken, context.model);

          // for each iteration we need to rewind to the beginning
          // of the for loop
          tokenStream.rewind(feToken);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.