org.peaseplate.internal.chunk
Class ElseIfBlock

java.lang.Object
  extended by org.peaseplate.chunk.AbstractChunk
      extended by org.peaseplate.chunk.AbstractBlock
          extended by org.peaseplate.internal.chunk.AbstractIfBlock
              extended by org.peaseplate.internal.chunk.ElseIfBlock
All Implemented Interfaces:
BlockExpansion, BlockHead, BlockTail, Chunk, ExpandableBlock

public final class ElseIfBlock
extends AbstractIfBlock
implements BlockExpansion, BlockTail


Constructor Summary
ElseIfBlock(TemplateLocator locator, int line, int column, ICommand command)
           
 
Method Summary
 void render(BuildContext context, java.io.Writer writer)
          Renders the chunk to the specified writer using the specified template context.
 void setVariablesToRelease(java.lang.String[] variablesToRelease)
           
 java.lang.String toString()
          Returns a meaningful representation of this chunk
 
Methods inherited from class org.peaseplate.internal.chunk.AbstractIfBlock
addExpansion, getCommand, isEssential, isVisible
 
Methods inherited from class org.peaseplate.chunk.AbstractBlock
getBlock, renderBlock, setBlock
 
Methods inherited from class org.peaseplate.chunk.AbstractChunk
getColumn, getLine, getLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.peaseplate.chunk.BlockHead
getBlock, renderBlock, setBlock
 
Methods inherited from interface org.peaseplate.chunk.Chunk
getColumn, getLine, getLocator, isEssential, isVisible
 

Constructor Detail

ElseIfBlock

public ElseIfBlock(TemplateLocator locator,
                   int line,
                   int column,
                   ICommand command)
Method Detail

setVariablesToRelease

public void setVariablesToRelease(java.lang.String[] variablesToRelease)
Specified by:
setVariablesToRelease in interface BlockTail
See Also:
BlockTail.setVariablesToRelease(java.lang.String[])

render

public void render(BuildContext context,
                   java.io.Writer writer)
            throws TemplateException,
                   java.io.IOException
Description copied from interface: Chunk
Renders the chunk to the specified writer using the specified template context.

Specified by:
render in interface Chunk
Overrides:
render in class AbstractIfBlock
Parameters:
context - the context
writer - the writer
Throws:
TemplateException - on occasion
java.io.IOException - on occasion
See Also:
AbstractIfBlock.render(org.peaseplate.internal.BuildContext, java.io.Writer)

toString

public java.lang.String toString()
Description copied from interface: Chunk
Returns a meaningful representation of this chunk

Specified by:
toString in interface Chunk
Overrides:
toString in class AbstractIfBlock
Returns:
a meaningful representation of this chunk
See Also:
Object.toString()


Copyright © 2008. All Rights Reserved.