All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.UserDecoratorList

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

public class UserDecoratorList
extends List
The UserDecoratorList class presents for the node of parse tree of qualified name.


Constructor Index

 o UserDecoratorList()
 o UserDecoratorList(UserDecorator)
 o UserDecoratorList(UserDecorator, UserDecorator)

Method Index

 o addElement(UserDecorator)
Adds the specified element after the list
 o append(UserDecoratorList)
Appends a list after this list.
 o contains(String)
Tests if any element in this list equal to the specified string.
 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 This does't cause side-effect as a list.
 o insertElementAt(UserDecorator, int)
Inserts the specified element into the list before the specified element of the list.
 o lastElement()
 o setElementAt(UserDecorator, int)
Sets the specified element at the specified place of the list
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o UserDecoratorList
 public UserDecoratorList()
 o UserDecoratorList
 public UserDecoratorList(UserDecorator e0)
 o UserDecoratorList
 public UserDecoratorList(UserDecorator e0,
                          UserDecorator e1)

Methods

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

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

 o setElementAt
 public void setElementAt(UserDecorator 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(UserDecorator p)
Adds the specified element after the list

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

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

Returns:
s the first element
 o getRest
 public UserDecoratorList getRest()
Returns the new list from this list's element except for the first element This does't cause side-effect as a list.

Returns:
s the rest list except for the first element
 o lastElement
 public UserDecorator lastElement()
 o append
 public void append(UserDecoratorList lst)
Appends a list after this list. This doesn't cause side-effect as a list.

Parameters:
lst - a list to be appended
 o contains
 public boolean contains(String str)
Tests if any element in this list equal to the specified string.

Overrides:
contains in class List

All Packages  Class Hierarchy  This Package  Previous  Next  Index