All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jamon.codegen.ParsedTemplateImpl Maven / Gradle / Ivy

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.jamon.codegen;

import java.util.Collection;

import org.jamon.api.ParsedTemplate;
import org.jamon.api.SourceGenerator;

public class ParsedTemplateImpl implements ParsedTemplate {
  private final TemplateDescriber templateDescriber;

  private final TemplateUnit templateUnit;

  public ParsedTemplateImpl(TemplateDescriber templateDescriber, TemplateUnit templateUnit) {
    this.templateDescriber = templateDescriber;
    this.templateUnit = templateUnit;
  }

  @Override
  public SourceGenerator getImplGenerator() {
    return new ImplGenerator(templateDescriber, templateUnit);
  }

  @Override
  public SourceGenerator getProxyGenerator() {
    return new ProxyGenerator(templateDescriber, templateUnit);
  }

  @Override
  public Collection getTemplateDependencies() {
    return templateUnit.getTemplateDependencies();
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy