Class Node

  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by step6.Node
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess
Direct Known Subclasses:
expr.Commutative, expr.yyTree.Add, expr.yyTree.Add, expr.yyTree.Add, expr.yyTree.And, expr.yyTree.AndIf, expr.yyTree.Div, expr.yyTree.Div, expr.yyTree.Div, expr.yyTree.Div, expr.yyTree.Eq, expr.yyTree.Ge, expr.yyTree.Gt, expr.yyTree.Le, expr.yyTree.Lit, expr.yyTree.Lsh, expr.yyTree.Lt, expr.yyTree.Minus, expr.yyTree.Minus, expr.yyTree.Minus, expr.yyTree.Minus, expr.yyTree.Mod, expr.yyTree.Mod, expr.yyTree.Mod, expr.yyTree.Mod, expr.yyTree.Mul, expr.yyTree.Mul, expr.yyTree.Mul, expr.yyTree.Ne, expr.yyTree.Neg, expr.yyTree.Not, expr.yyTree.Or, expr.yyTree.OrIf, expr.yyTree.Rsh, expr.yyTree.Sub, expr.yyTree.Sub, expr.yyTree.Sub, expr.yyTree.Sub, expr.yyTree.Xor, i.T

public class Node
extends ArrayList

base class for tree nodes, instrumented to display an indented tree.

See Also:
Serialized Form

Field Summary
Fields inherited from class java.util.AbstractList
Constructor Summary
protected Node()
protected Node(ArrayList sub)
Method Summary
 String toString()
          returns indented list of class names and leaf values.
protected  void toString(String name, ArrayList a, String indent, StringBuffer buf)
          adds name and (recursively) content of a to buffer.
protected  void toString(String indent, StringBuffer buf)
          adds this to buffer.
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
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


protected Node()


protected Node(ArrayList sub)
Method Detail


public String toString()
returns indented list of class names and leaf values.

toString in class AbstractCollection


protected void toString(String indent,
                        StringBuffer buf)
adds this to buffer.


protected void toString(String name,
                        ArrayList a,
                        String indent,
                        StringBuffer buf)
adds name and (recursively) content of a to buffer. Manages indentation, watches out for unknown classes.