Package com.fizzed.rocker.compiler
Class TemplateParser
java.lang.Object
com.fizzed.rocker.compiler.TemplateParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RockerConfigurationprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParserExceptionbuildParserException(SourceRef sourceRef, String templatePath, String msg) static ParserExceptionbuildParserException(SourceRef sourceRef, String templatePath, String msg, Throwable cause) voidvoidprivate TemplateModelparse(org.antlr.v4.runtime.ANTLRInputStream input, String packageName, String templateName, long modifiedAt) (package private) static TemplateParser.TemplateIdentityparseIdentity(File baseDirectory, File templateFile) static ParserExceptionunwrapParserRuntimeException(String templatePath, ParserRuntimeException e)
-
Field Details
-
log
private static final org.slf4j.Logger log -
configuration
-
-
Constructor Details
-
TemplateParser
-
-
Method Details
-
getConfiguration
-
parseIdentity
static TemplateParser.TemplateIdentity parseIdentity(File baseDirectory, File templateFile) throws IOException - Throws:
IOException
-
parse
- Throws:
IOExceptionParserException
-
parse
- Throws:
IOExceptionParserException
-
parse
- Throws:
IOExceptionParserException
-
buildParserException
public static ParserException buildParserException(SourceRef sourceRef, String templatePath, String msg) -
buildParserException
public static ParserException buildParserException(SourceRef sourceRef, String templatePath, String msg, Throwable cause) -
parse
private TemplateModel parse(org.antlr.v4.runtime.ANTLRInputStream input, String packageName, String templateName, long modifiedAt) throws ParserException - Throws:
ParserException
-
unwrapParserRuntimeException
public static ParserException unwrapParserRuntimeException(String templatePath, ParserRuntimeException e) -
combineAdjacentPlain
- Throws:
ParserRuntimeException
-
discardLogicWhitespace
-