org.webmacro.engine
Class ListBuilder

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended byorg.webmacro.engine.ListBuilder
All Implemented Interfaces:
Builder, java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public final class ListBuilder
extends java.util.Vector
implements Builder

ListBuilder is used for building argument lists to function calls or array initializers. If all of the arguments are compile-time constants, the build() method returns an Object[], otherwise it returns a ListMacro.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ListBuilder()
           
 
Method Summary
 java.lang.Object build(BuildContext bc)
           
 java.lang.Object[] buildAsArray(BuildContext bc)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

ListBuilder

public ListBuilder()
Method Detail

buildAsArray

public final java.lang.Object[] buildAsArray(BuildContext bc)
                                      throws BuildException
Throws:
BuildException

build

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