Package com.google.template.soy.data

Examples of com.google.template.soy.data.SoyMapData


  }


  @Override public Map<String, SoyData> asMap() {

    SoyMapData combinedMapData = new SoyMapData();
    addMapDataHelper(combinedMapData, "", baseData.asMap());
    addMapDataHelper(combinedMapData, "", super.asMap());
    return Collections.unmodifiableMap(combinedMapData.asMap());
  }
View Full Code Here


    if (template == null) {
      throw new SoyTofuException("Attempting to render undefined template '" + templateName + "'.");
    }

    if (data == null) {
      data = new SoyMapData();
    }

    try {
      RenderVisitor rv = tofuRenderVisitorFactory.create(
          outputBuf, templateRegistry, data, ijData, null, activeDelPackageNames, msgBundle,
View Full Code Here

  @Deprecated
  @Override public String render(SoyTemplateInfo templateInfo, @Nullable Map<String, ?> data,
      @Nullable SoyMsgBundle msgBundle) {
    return renderMain(
        templateInfo.getName(), (data == null) ? null : new SoyMapData(data), null, null, msgBundle,
        null, true);
  }
View Full Code Here

  @Deprecated
  @Override public String render(String templateName, @Nullable Map<String, ?> data,
      @Nullable SoyMsgBundle msgBundle) {
    return renderMain(
        templateName, (data == null) ? null : new SoyMapData(data), null, null, msgBundle, null,
        true);
  }
View Full Code Here

      this.cssRenamingMap = null;
      this.doAddToCache = true;
    }

    @Override public Renderer setData(Map<String, ?> data) {
      this.data = (data == null) ? null : new SoyMapData(data);
      return this;
    }
View Full Code Here

      this.data = data;
      return this;
    }

    @Override public Renderer setIjData(Map<String, ?> ijData) {
      this.ijData = (ijData == null) ? null : new SoyMapData(ijData);
      return this;
    }
View Full Code Here

  @Deprecated
  @SuppressWarnings({"deprecation"})
  @Override public String render(String templateName, @Nullable Map<String, ?> data,
                                 @Nullable SoyMsgBundle msgBundle) {
    return render(templateName, (data == null) ? null : new SoyMapData(data), msgBundle);
  }
View Full Code Here

      }
    }

    StringBuilder prerenderOutputSb = new StringBuilder();
    try {
      prerenderVisitorFactory.create(prerenderOutputSb, templateRegistry, new SoyMapData(), null)
          .exec(node);
    } catch (RenderException pe) {
      return// cannot prerender for some other reason not checked above
    }
View Full Code Here

  private final PreevalVisitor preevalVisitor;


  @Inject
  SimplifyExprVisitor(PreevalVisitorFactory preevalVisitorFactory) {
    this.preevalVisitor = preevalVisitorFactory.create(new SoyMapData(), EMPTY_ENV);
  }
View Full Code Here

      }
      SoyData value = visit(node.getChild(i + 1));
      map.put(key.stringValue(), value);
    }

    return new SoyMapData(map);
  }
View Full Code Here

TOP

Related Classes of com.google.template.soy.data.SoyMapData

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.