gl
Class Gl.Tree.Gt
Object
AbstractCollection<E>
AbstractList
Gl.Tree.Gt
- All Implemented Interfaces:
- Gl.Tree.Visit, Serializable, Iterable, Collection, List
- Direct Known Subclasses:
- Tree.Gt
- Enclosing class:
- Gl.Tree
public static class Gl.Tree.Gt
- extends AbstractList
- implements Serializable, Gl.Tree.Visit
tree node class.
- See Also:
- Serialized Form
|
Field Summary |
protected Object[] |
nodes
mutable body. |
protected int |
position
associated input position. |
| Methods inherited from class AbstractList |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
position
protected final int position
- associated input position.
nodes
protected Object[] nodes
- mutable body.
Gl.Tree.Gt
protected Gl.Tree.Gt(int position,
List args)
visit
public Object visit(Gl.Tree.Visitor visitor)
- Description copied from interface:
Gl.Tree.Visit
- receive a visitor.
- Specified by:
visit in interface Gl.Tree.Visit
getPosition
public int getPosition()
size
public int size()
- Specified by:
size in interface Collection- Specified by:
size in interface List- Specified by:
size in class AbstractCollection
get
public Object get(int n)
- Specified by:
get in interface List- Specified by:
get in class AbstractList
set
public Object set(int index,
Object element)
- Specified by:
set in interface List- Overrides:
set in class AbstractList
add
public void add(int index,
Object element)
- Specified by:
add in interface List- Overrides:
add in class AbstractList
remove
public Object remove(int index)
- Specified by:
remove in interface List- Overrides:
remove in class AbstractList