Package de.neuland.jade4j.compiler
Class Compiler
- java.lang.Object
-
- de.neuland.jade4j.compiler.Compiler
-
public class Compiler extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ExpressionHandler
expressionHandler
private boolean
prettyPrint
private Node
rootNode
private JadeTemplate
template
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compile(JadeModel model, java.io.Writer w)
java.lang.String
compileToString(JadeModel model)
void
setExpressionHandler(ExpressionHandler expressionHandler)
void
setPrettyPrint(boolean prettyPrint)
void
setTemplate(JadeTemplate jadeTemplate)
-
-
-
Field Detail
-
rootNode
private final Node rootNode
-
prettyPrint
private boolean prettyPrint
-
template
private JadeTemplate template
-
expressionHandler
private ExpressionHandler expressionHandler
-
-
Constructor Detail
-
Compiler
public Compiler(Node rootNode)
-
-
Method Detail
-
compileToString
public java.lang.String compileToString(JadeModel model) throws JadeCompilerException
- Throws:
JadeCompilerException
-
compile
public void compile(JadeModel model, java.io.Writer w) throws JadeCompilerException
- Throws:
JadeCompilerException
-
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint)
-
setTemplate
public void setTemplate(JadeTemplate jadeTemplate)
-
setExpressionHandler
public void setExpressionHandler(ExpressionHandler expressionHandler)
-
-