public class TemplateParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateParser.TemplateParserListener |
| Constructor and Description |
|---|
TemplateParser(RockerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
static ParserException |
buildParserException(SourceRef sourceRef,
String templatePath,
String msg) |
static ParserException |
buildParserException(SourceRef sourceRef,
String templatePath,
String msg,
Throwable cause) |
void |
combineAdjacentPlain(TemplateModel model) |
void |
discardLogicWhitespace(TemplateModel model) |
RockerConfiguration |
getConfiguration() |
TemplateModel |
parse(File f) |
TemplateModel |
parse(File f,
String packageName) |
TemplateModel |
parse(String source,
String qualifiedName) |
static ParserException |
unwrapParserRuntimeException(String templatePath,
ParserRuntimeException e) |
public TemplateParser(RockerConfiguration configuration)
public RockerConfiguration getConfiguration()
public TemplateModel parse(File f) throws IOException, ParserException
IOExceptionParserExceptionpublic TemplateModel parse(File f, String packageName) throws IOException, ParserException
IOExceptionParserExceptionpublic TemplateModel parse(String source, String qualifiedName) throws IOException, ParserException
IOExceptionParserExceptionpublic static ParserException buildParserException(SourceRef sourceRef, String templatePath, String msg)
public static ParserException buildParserException(SourceRef sourceRef, String templatePath, String msg, Throwable cause)
public static ParserException unwrapParserRuntimeException(String templatePath, ParserRuntimeException e)
public void combineAdjacentPlain(TemplateModel model) throws ParserRuntimeException
ParserRuntimeExceptionpublic void discardLogicWhitespace(TemplateModel model)
Copyright © 2016–2020 Fizzed, Inc. All rights reserved.