Object-oriented Parser System
v3.6

mops
Class Node

Object
  extended by AbstractCollection<E>
      extended by AbstractList<E>
          extended by ArrayList
              extended by Node
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess
Direct Known Subclasses:
MopsParser.Blank, MopsParser.Jsm, MopsParser.Monad, MopsParser.Mvalue, MopsParser.Mvalues, MopsParser.Paren, MopsParser.Text, MopsParser.Trees, Tree.Add, Tree.Div, Tree.Leaf, Tree.Mul, Tree.Sub

public abstract class Node
extends ArrayList

base class for tree representation.

Version:
1.2.0
See Also:
Serialized Form

Field Summary
protected  int lineNo
           
 
Fields inherited from class AbstractList
modCount
 
Constructor Summary
protected Node(Object... arg)
           
 
Method Summary
 int getPosition()
          for compatibility with oops3.
 String toString()
          indented tree, no trailing newline.
protected  void toString(StringBuilder result, String indent)
          append indented tree to result, trailing newline.
protected static void toString(StringBuilder result, String indent, Object o)
          append indented tree to result, trailing newline.
 
Methods inherited from class 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 AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

lineNo

protected final int lineNo
Constructor Detail

Node

protected Node(Object... arg)
Parameters:
arg - [0] if Input, use for line number.
Method Detail

getPosition

public int getPosition()
for compatibility with oops3.


toString

protected static void toString(StringBuilder result,
                               String indent,
                               Object o)
append indented tree to result, trailing newline.


toString

protected void toString(StringBuilder result,
                        String indent)
append indented tree to result, trailing newline.


toString

public String toString()
indented tree, no trailing newline.

Overrides:
toString in class AbstractCollection


(c) 2008 Axel T. Schreiner