com.lyncode.jtwig.tree.content
Class IfExpression
java.lang.Object
com.lyncode.jtwig.tree.content.IfExpression
- All Implemented Interfaces:
- Content
public class IfExpression
- extends Object
- implements Content
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IfExpression
public IfExpression(Expression conditionalExpression)
setElseExpression
public boolean setElseExpression(IfExpression.ElseExpression elseExpression)
addElseIf
public boolean addElseIf(IfExpression.ElseIfExpression expression)
setContent
public boolean setContent(Content content)
render
public boolean render(OutputStream outputStream,
JtwigContext context)
throws RenderException
- Specified by:
render in interface Content
- Throws:
RenderException
compile
public IfExpression compile(JtwigResource resource)
throws CompileException
- Specified by:
compile in interface Content
- Throws:
CompileException
replace
public boolean replace(Block expression)
throws CompileException
- Specified by:
replace in interface Content
- Throws:
CompileException
Copyright © 2014. All Rights Reserved.