Package com.google.template.soy.exprtree

Examples of com.google.template.soy.exprtree.DataRefAccessNode.toSourceString()


          if (value == null || value instanceof UndefinedData || value instanceof NullData) {
            return NullData.INSTANCE;
          } else {
            throw new RenderException(
                "While evaluating \"" + node.toSourceString() + "\", encountered non-collection" +
                " just before accessing \"" + accessNode.toSourceString() + "\".");
          }
        } else {
          // This behavior is not ideal, but needed for compatibility with existing code.
          return UndefinedData.INSTANCE;
          // TODO: If feasible, find and fix existing instances, then enable this exception.
View Full Code Here


        value = ((CollectionData) value).getSingle(key);
      } else {
        if (! (value instanceof SoyListData)) {
          throw new RenderException(
              "While evaluating \"" + node.toSourceString() + "\", encountered non-list" +
              " just before accessing \"" + accessNode.toSourceString() + "\".");
        }
        value = ((SoyListData) value).get(index);
      }
    }
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.