com.lyncode.jtwig.tree.structural
Class Block

java.lang.Object
  extended by com.lyncode.jtwig.tree.structural.Block
All Implemented Interfaces:
Content

public class Block
extends Object
implements Content


Constructor Summary
Block(String name)
           
 
Method Summary
 Block compile(JtwigResource resource)
           
 Content getContent()
           
 String getName()
           
 boolean render(OutputStream outputStream, JtwigContext context)
           
 boolean replace(Block expression)
           
 boolean setContent(Content content)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Block

public Block(String name)
Method Detail

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.