All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.AnyWordList

java.lang.Object
   |
   +----openjava.ptree.PtreeObject
           |
           +----openjava.ptree.List
                   |
                   +----openjava.ptree.AnyWordList

public class AnyWordList
extends List
The AnyWordList class represents the user defined node of parse tree.

See Also:
List

Constructor Index

 o AnyWordList()
Allocates a new object.
 o AnyWordList(Ptree)
Allocates a new object.
 o AnyWordList(Ptree, Ptree)
Allocates a new object.

Method Index

 o addElement(Ptree)
Adds the specified element after the list This causes side-effect.
 o append(AnyWordList)
Appends a list after this list.
 o elementAt(int)
Gets the specified element at This causes side-effect.
 o getFirst()
Returns the first element
 o getRest()
Returns the new list from this list's element except for the first element
 o insertElementAt(Ptree, int)
Inserts the specified element into the list before the specified element of the list.
 o setElementAt(Ptree, int)
Sets the specified element at the specified place of the list
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o AnyWordList
 public AnyWordList()
Allocates a new object.

 o AnyWordList
 public AnyWordList(Ptree e0)
Allocates a new object.

Parameters:
e0 - the first element of this list.
 o AnyWordList
 public AnyWordList(Ptree e0,
                    Ptree e1)
Allocates a new object.

Parameters:
e0 - the second element of this list.
e1 - the second element of this list.

Methods

 o writeCode
 public void writeCode()
Writes the code this parse-tree presents for.

Overrides:
writeCode in class List
 o elementAt
 public Ptree elementAt(int n)
Gets the specified element at This causes side-effect.

Parameters:
n - the number where to get element
 o setElementAt
 public void setElementAt(Ptree p,
                          int n)
Sets the specified element at the specified place of the list

Parameters:
p - element
n - the number where to set element
 o addElement
 public void addElement(Ptree p)
Adds the specified element after the list This causes side-effect.

Parameters:
p - Ptree to be inserted into the list
 o insertElementAt
 public void insertElementAt(Ptree p,
                             int n)
Inserts the specified element into the list before the specified element of the list. This causes side-effect.

Parameters:
p - the element to be inserted into the list
n - number of the element before which insertion ocuurs
 o getFirst
 public Ptree getFirst()
Returns the first element

Returns:
the first element
 o getRest
 public AnyWordList getRest()
Returns the new list from this list's element except for the first element

Returns:
the rest list except for the first element
 o append
 public void append(AnyWordList lst)
Appends a list after this list.

Parameters:
lst - a list to be appended

All Packages  Class Hierarchy  This Package  Previous  Next  Index