org.webmacro.engine
Class BlockBuilder

java.lang.Object
  extended byorg.webmacro.engine.BlockBuilder
All Implemented Interfaces:
Builder
Direct Known Subclasses:
ParserBlockBuilder

public class BlockBuilder
extends java.lang.Object
implements Builder

A block represents the text between two {}'s in a template, or else the text that begins at the start of the template and runs until its end ({}'s around the whole document are not required). It contains all of the other directives, strings, etc. that can be in a template.


Nested Class Summary
 class BlockBuilder.BBIterator
           
static interface BlockBuilder.BlockIterator
           
 
Constructor Summary
BlockBuilder()
           
BlockBuilder(java.lang.String name)
           
 
Method Summary
 void addElement(java.lang.Object o)
           
 void addElement(java.lang.Object o, int lineNo, int colNo)
           
 java.lang.Object build(BuildContext bc)
           
 java.lang.Object elementAt(int i)
           
 void remove(int i)
           
 java.lang.Object setElementAt(java.lang.Object o, int i)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockBuilder

public BlockBuilder()

BlockBuilder

public BlockBuilder(java.lang.String name)
Method Detail

build

public final java.lang.Object build(BuildContext bc)
                             throws BuildException
Specified by:
build in interface Builder
Throws:
BuildException

addElement

public void addElement(java.lang.Object o)

addElement

public void addElement(java.lang.Object o,
                       int lineNo,
                       int colNo)

size

public int size()

remove

public void remove(int i)

elementAt

public java.lang.Object elementAt(int i)

setElementAt

public java.lang.Object setElementAt(java.lang.Object o,
                                     int i)


Copyright © 1999-2006 WebMacro. All Rights Reserved.