com.lyncode.jtwig.tree.content
Class ForLoop

java.lang.Object
  extended by com.lyncode.jtwig.tree.content.ForLoop
All Implemented Interfaces:
Content
Direct Known Subclasses:
ForPairLoop

public class ForLoop
extends Object
implements Content


Nested Class Summary
static class ForLoop.Loop
           
 
Field Summary
protected  Content content
           
protected  Expression expression
           
protected  Variable variable
           
 
Constructor Summary
ForLoop(Variable variable, Expression list)
           
 
Method Summary
 Content compile(JtwigResource resource)
           
 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
 

Field Detail

variable

protected Variable variable

content

protected Content content

expression

protected Expression expression
Constructor Detail

ForLoop

public ForLoop(Variable variable,
               Expression list)
Method Detail

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 Content 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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.