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
-
AnyWordList()
- Allocates a new object.
-
AnyWordList(Ptree)
- Allocates a new object.
-
AnyWordList(Ptree, Ptree)
- Allocates a new object.
-
addElement(Ptree)
- Adds the specified element after the list
This causes side-effect.
-
append(AnyWordList)
- Appends a list after this list.
-
elementAt(int)
- Gets the specified element at
This causes side-effect.
-
getFirst()
- Returns the first element
-
getRest()
- Returns the new list from this list's element except for
the first element
-
insertElementAt(Ptree, int)
- Inserts the specified element into the list
before the specified element of the list.
-
setElementAt(Ptree, int)
- Sets the specified element at the specified place of the list
-
writeCode()
- Writes the code this parse-tree presents for.
AnyWordList
public AnyWordList()
- Allocates a new object.
AnyWordList
public AnyWordList(Ptree e0)
- Allocates a new object.
- Parameters:
- e0 - the first element of this list.
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.
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class List
elementAt
public Ptree elementAt(int n)
- Gets the specified element at
This causes side-effect.
- Parameters:
- n - the number where to get element
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
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
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
getFirst
public Ptree getFirst()
- Returns the first element
- Returns:
- the first element
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
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