io.micronaut.starter.feature.view.mvnPluginRocker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micronaut-starter-core Show documentation
Show all versions of micronaut-starter-core Show documentation
Generates Micronaut applications
package io.micronaut.starter.feature.view;
import java.io.IOException;
import com.fizzed.rocker.ForIterator;
import com.fizzed.rocker.RenderingException;
import com.fizzed.rocker.RockerContent;
import com.fizzed.rocker.RockerOutput;
import com.fizzed.rocker.runtime.DefaultRockerTemplate;
import com.fizzed.rocker.runtime.PlainTextUnloadedClassLoader;
/*
* Auto generated code to render template io/micronaut/starter/feature/view/mvnPluginRocker.rocker.raw
* Do not edit this file. Changes will eventually be overwritten by Rocker parser!
*/
@SuppressWarnings("unused")
public class mvnPluginRocker extends com.fizzed.rocker.runtime.DefaultRockerModel {
static public com.fizzed.rocker.ContentType getContentType() { return com.fizzed.rocker.ContentType.RAW; }
static public String getTemplateName() { return "mvnPluginRocker.rocker.raw"; }
static public String getTemplatePackageName() { return "io.micronaut.starter.feature.view"; }
static public String getHeaderHash() { return "-847476671"; }
static public String[] getArgumentNames() { return new String[] { "groupId", "artifactId", "version", "templateDirectory" }; }
// argument @ [1:2]
private String groupId;
// argument @ [1:2]
private String artifactId;
// argument @ [1:2]
private String version;
// argument @ [1:2]
private String templateDirectory;
public mvnPluginRocker groupId(String groupId) {
this.groupId = groupId;
return this;
}
public String groupId() {
return this.groupId;
}
public mvnPluginRocker artifactId(String artifactId) {
this.artifactId = artifactId;
return this;
}
public String artifactId() {
return this.artifactId;
}
public mvnPluginRocker version(String version) {
this.version = version;
return this;
}
public String version() {
return this.version;
}
public mvnPluginRocker templateDirectory(String templateDirectory) {
this.templateDirectory = templateDirectory;
return this;
}
public String templateDirectory() {
return this.templateDirectory;
}
static public mvnPluginRocker template(String groupId, String artifactId, String version, String templateDirectory) {
return new mvnPluginRocker()
.groupId(groupId)
.artifactId(artifactId)
.version(version)
.templateDirectory(templateDirectory);
}
@Override
protected DefaultRockerTemplate buildTemplate() throws RenderingException {
// optimized for performance (via rocker.optimize flag; no auto reloading)
return new Template(this);
}
static public class Template extends com.fizzed.rocker.runtime.DefaultRockerTemplate {
// \n
static private final String PLAIN_TEXT_0_0 = "\n ";
// \n
static private final String PLAIN_TEXT_1_0 = " \n ";
// \n
static private final String PLAIN_TEXT_2_0 = "\n ";
// \n \n \n generate-rocker-templates \n generate-sources \n \n generate \n \n \n
static private final String PLAIN_TEXT_3_0 = " \n \n \n generate-rocker-templates \n generate-sources \n \n generate \n \n \n ";
// \n \n \n \n \n
static private final String PLAIN_TEXT_4_0 = "\n \n \n \n\n";
// argument @ [1:2]
protected final String groupId;
// argument @ [1:2]
protected final String artifactId;
// argument @ [1:2]
protected final String version;
// argument @ [1:2]
protected final String templateDirectory;
public Template(mvnPluginRocker model) {
super(model);
__internal.setCharset("UTF-8");
__internal.setContentType(getContentType());
__internal.setTemplateName(getTemplateName());
__internal.setTemplatePackageName(getTemplatePackageName());
this.groupId = model.groupId();
this.artifactId = model.artifactId();
this.version = model.version();
this.templateDirectory = model.templateDirectory();
}
@Override
protected void __doRender() throws IOException, RenderingException {
// PlainText @ [1:83]
__internal.aboutToExecutePosInTemplate(1, 83);
__internal.writeValue(PLAIN_TEXT_0_0);
// ValueExpression @ [3:12]
__internal.aboutToExecutePosInTemplate(3, 12);
__internal.renderValue(groupId, false);
// PlainText @ [3:20]
__internal.aboutToExecutePosInTemplate(3, 20);
__internal.writeValue(PLAIN_TEXT_1_0);
// ValueExpression @ [4:15]
__internal.aboutToExecutePosInTemplate(4, 15);
__internal.renderValue(artifactId, false);
// PlainText @ [4:26]
__internal.aboutToExecutePosInTemplate(4, 26);
__internal.writeValue(PLAIN_TEXT_2_0);
// ValueExpression @ [5:12]
__internal.aboutToExecutePosInTemplate(5, 12);
__internal.renderValue(version, false);
// PlainText @ [5:20]
__internal.aboutToExecutePosInTemplate(5, 20);
__internal.writeValue(PLAIN_TEXT_3_0);
// ValueExpression @ [14:28]
__internal.aboutToExecutePosInTemplate(14, 28);
__internal.renderValue(templateDirectory, false);
// PlainText @ [14:46]
__internal.aboutToExecutePosInTemplate(14, 46);
__internal.writeValue(PLAIN_TEXT_4_0);
}
}
}