pj
Class PJ.Collect

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by pj.PJ.Rhs
                  extended by pj.PJ.Collect
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, Dump.Helper
Enclosing class:
PJ

protected class PJ.Collect
extends PJ.Rhs

represents a right hand side which collects one or more items.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class pj.PJ.Rhs
optPrec
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected PJ.Collect(ArrayList items, Object optPrec)
           
 
Method Summary
protected  void action(PrintWriter out)
          do nothing if there is no collectible; copy, if there is one collectible; otherwise collect into a new ArrayList.
 void dump(Dump sender, Class c, Object o)
           
 
Methods inherited from class pj.PJ.Rhs
factory, lex, prolog, rules
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

PJ.Collect

protected PJ.Collect(ArrayList items,
                     Object optPrec)
Method Detail

action

protected void action(PrintWriter out)
do nothing if there is no collectible; copy, if there is one collectible; otherwise collect into a new ArrayList.

Specified by:
action in class PJ.Rhs

dump

public void dump(Dump sender,
                 Class c,
                 Object o)