mops
Class Node
Object
AbstractCollection<E>
AbstractList<E>
ArrayList
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
|
| 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 |
lineNo
protected final int lineNo
Node
protected Node(Object... arg)
- Parameters:
arg - [0] if Input, use for line number.
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