All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.TypeDeclarationList

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

public class TypeDeclarationList
extends List
The TypeDeclarationList class presents for the node of parse tree of TypeDeclaration


Constructor Index

 o TypeDeclarationList()
 o TypeDeclarationList(TypeDeclaration)
 o TypeDeclarationList(TypeDeclaration, TypeDeclaration)

Method Index

 o addElement(TypeDeclaration)
Adds the specified element after the list This causes side-effect.
 o append(TypeDeclarationList)
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(TypeDeclaration, int)
Inserts the specified element into the list before the specified element of the list.
 o setElementAt(TypeDeclaration, int)
Sets the specified element at the specified place of the list
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o TypeDeclarationList
 public TypeDeclarationList()
 o TypeDeclarationList
 public TypeDeclarationList(TypeDeclaration e0)
 o TypeDeclarationList
 public TypeDeclarationList(TypeDeclaration e0,
                            TypeDeclaration e1)

Methods

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

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

 o setElementAt
 public void setElementAt(TypeDeclaration 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(TypeDeclaration p)
Adds the specified element after the list This causes side-effect.

Parameters:
p - TypeDeclaration to be inserted into the list
 o insertElementAt
 public void insertElementAt(TypeDeclaration 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 TypeDeclaration getFirst()
Returns the first element

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

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

Parameters:
lst - a list to be appended

All Packages  Class Hierarchy  This Package  Previous  Next  Index