Package com.google.template.soy.sharedpasses.render

Examples of com.google.template.soy.sharedpasses.render.RenderException


  @Override protected SoyData visitDataRefNode(DataRefNode node) {

    // Cannot preevaluate injected data.
    if (node.isIjDataRef()) {
      throw new RenderException("Cannot preevaluate reference to ijData.");
    }

    // Otherwise, super method can handle it.
    return super.visitDataRefNode(node);
  }
View Full Code Here


  @Override protected SoyData computeFunctionHelper(
      SoyJavaRuntimeFunction fn, List<SoyData> args, FunctionNode fnNode) {

    if (! fn.getClass().isAnnotationPresent(SoyPureFunction.class)) {
      throw new RenderException("Cannot preevaluate impure function.");
    }

    return super.computeFunctionHelper(fn, args, fnNode);
  }
View Full Code Here

  @Override protected SoyData resolveDataRefFirstKey(DataRefNode dataRefNode) {

    SoyData value = super.resolveDataRefFirstKey(dataRefNode);
    if (value instanceof UndefinedData) {
      throw new RenderException("Encountered undefined reference during preevaluation.");
    }
    return value;
  }
View Full Code Here

TOP

Related Classes of com.google.template.soy.sharedpasses.render.RenderException

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.