Tabnine Logo
GroovyTemplateEmitter
Code IndexAdd Tabnine to your IDE (free)

How to use
GroovyTemplateEmitter
in
juzu.impl.template.spi.juzu.dialect.gtmpl

Best Java code snippets using juzu.impl.template.spi.juzu.dialect.gtmpl.GroovyTemplateEmitter (Showing top 6 results out of 315)

origin: org.juzu/juzu-core

public GroovyTemplateStub build(String templateId) {
 final String script = toString();
 return new GroovyTemplateStub(Thread.currentThread().getContextClassLoader(), templateId) {
  @Override
  public String getScript(ClassLoader loader, String fqn) {
   return script;
  }
 };
}
origin: juzu/juzu

 @Override
 public final void emit(EmitContext context, TemplateModel<ASTNode.Template> templateModel) throws TemplateException, IOException {
  GroovyTemplateEmitter emitter = new GroovyTemplateEmitter(templateModel.getPath().getName());
  EmitPhase tcc = new EmitPhase(context);
  tcc.emit(emitter, templateModel.getModel());
  Path.Absolute path = templateModel.getPath();
  path = path.as(path.getRawName() + "_", "groovy");
  context.createResource(path, emitter.toString());
 }
}
origin: org.juzu/juzu-core

Path.Absolute absolute = Path.absolute(fqn, ".gtmpl");
Path.Relative relative = Path.relative(name, ".gtmpl");
GroovyTemplateEmitter generator = new GroovyTemplateEmitter(fqn);
try {
 ProcessPhase processPhase = new ProcessPhase(new SimpleProcessContext(Collections.<Path.Absolute, TemplateModel<?>>emptyMap()) {
 throw failure(e);
GroovyTemplateStub stub = generator.build(fqn.toString());
stub.init();
return stub;
origin: org.juzu/juzu-core

 @Override
 public final void emit(EmitContext context, TemplateModel<ASTNode.Template> templateModel) throws TemplateException, IOException {
  GroovyTemplateEmitter emitter = new GroovyTemplateEmitter(templateModel.getPath().getName());
  EmitPhase tcc = new EmitPhase(context);
  tcc.emit(emitter, templateModel.getModel());
  Path.Absolute path = templateModel.getPath();
  path = path.as(path.getRawName() + "_", "groovy");
  context.createResource(path, emitter.toString());
 }
}
origin: juzu/juzu

Path.Absolute absolute = Path.absolute(fqn, ".gtmpl");
Path.Relative relative = Path.relative(name, ".gtmpl");
GroovyTemplateEmitter generator = new GroovyTemplateEmitter(fqn);
try {
 ProcessPhase processPhase = new ProcessPhase(new SimpleProcessContext(Collections.<Path.Absolute, TemplateModel<?>>emptyMap()) {
 throw failure(e);
GroovyTemplateStub stub = generator.build(fqn.toString());
stub.init();
return stub;
origin: juzu/juzu

public GroovyTemplateStub build(String templateId) {
 final String script = toString();
 return new GroovyTemplateStub(Thread.currentThread().getContextClassLoader(), templateId) {
  @Override
  public String getScript(ClassLoader loader, String fqn) {
   return script;
  }
 };
}
juzu.impl.template.spi.juzu.dialect.gtmplGroovyTemplateEmitter

Most used methods

  • <init>
  • build
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • Menu (java.awt)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now