Examples of ParentExprNode


Examples of com.google.template.soy.exprtree.ExprNode.ParentExprNode

  @Override protected void visitExprNode(ExprNode node) {

    if (! (node instanceof ParentExprNode)) {
      return;
    }
    ParentExprNode nodeAsParent = (ParentExprNode) node;

    // Recurse.
    visitChildren(nodeAsParent);

    // If all children are constants, we attempt to preevaluate this node and replace it with a
    // constant.
    for (ExprNode child : nodeAsParent.getChildren()) {
      if (! (child instanceof ConstantNode)) {
        return// cannot preevaluate
      }
    }
    attemptPreeval(nodeAsParent);
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.