public class JavaGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CRLF |
static int |
PLAIN_TEXT_CHUNK_LENGTH |
static String |
TAB |
| Constructor and Description |
|---|
JavaGenerator(RockerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendArgumentMembers(TemplateModel model,
Writer w,
String access,
boolean finalModifier,
int indent) |
void |
appendCommentAndSourcePositionUpdate(Writer w,
int tab,
TemplateUnit unit) |
File |
generate(TemplateModel model) |
RockerConfiguration |
getConfiguration() |
PlainTextStrategy |
getPlainTextStrategy() |
boolean |
isForIteratorType(String type) |
void |
setPlainTextStrategy(PlainTextStrategy plainTextStrategy) |
String |
sourceRef(TemplateUnit unit) |
String |
sourceRefLineCommaPosInLine(TemplateUnit unit) |
Writer |
tab(Writer w,
int count) |
public static final String CRLF
public static final String TAB
public static final int PLAIN_TEXT_CHUNK_LENGTH
public JavaGenerator(RockerConfiguration configuration)
public RockerConfiguration getConfiguration()
public PlainTextStrategy getPlainTextStrategy()
public void setPlainTextStrategy(PlainTextStrategy plainTextStrategy)
public File generate(TemplateModel model) throws GeneratorException, IOException
GeneratorExceptionIOExceptionpublic Writer tab(Writer w, int count) throws IOException
IOExceptionpublic String sourceRef(TemplateUnit unit)
public String sourceRefLineCommaPosInLine(TemplateUnit unit)
public void appendCommentAndSourcePositionUpdate(Writer w, int tab, TemplateUnit unit) throws IOException
IOExceptionpublic boolean isForIteratorType(String type)
public void appendArgumentMembers(TemplateModel model, Writer w, String access, boolean finalModifier, int indent) throws IOException
IOExceptionCopyright © 2016–2020 Fizzed, Inc. All rights reserved.