Package gg.jte.compiler
Interface CodeGenerator
- All Superinterfaces:
TemplateParserVisitor
- All Known Implementing Classes:
JavaCodeGenerator
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StringIn case the given value was previously checked to contain only a single template expression, this method could be used instead of a more expensive call to extractTemplateExpressionParts.List<byte[]> getCode()intstatic voidwriteAttributeMap(CodeBuilder code, TemplateParser.HtmlTag htmlTag) Methods inherited from interface gg.jte.compiler.TemplateParserVisitor
onCodePart, onCodeStatement, onComplete, onConditionElse, onConditionElse, onConditionEnd, onConditionStart, onError, onError, onForLoopElse, onForLoopEnd, onForLoopStart, onHtmlAttributeOutput, onHtmlTagAttributeCodePart, onHtmlTagBodyCodePart, onImport, onInterceptHtmlTagClosed, onInterceptHtmlTagOpened, onLineFinished, onParam, onParamsComplete, onRawEnd, onRawStart, onTemplateCall, onTextPart, onUnsafeCodePart
-
Method Details
-
getCode
String getCode() -
getBinaryTextParts
List<byte[]> getBinaryTextParts() -
getCurrentTemplateLine
int getCurrentTemplateLine() -
writeAttributeMap
-
extractSingleOutputTemplateExpression
In case the given value was previously checked to contain only a single template expression, this method could be used instead of a more expensive call to extractTemplateExpressionParts. -
extractTemplateExpressionParts
-
getParamInfo
-
getImports
-