com.lyncode.jtwig.tree.structural
Class Block
java.lang.Object
com.lyncode.jtwig.tree.structural.Block
- All Implemented Interfaces:
- Content
public class Block
- extends Object
- implements Content
Block
public Block(String name)
getName
public String getName()
getContent
public Content getContent()
setContent
public boolean setContent(Content content)
toString
public String toString()
- Overrides:
toString in class Object
render
public boolean render(OutputStream outputStream,
JtwigContext context)
throws RenderException
- Specified by:
render in interface Content
- Throws:
RenderException
compile
public Block 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.