All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.QualifiedName

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

public class QualifiedName
extends List
implements Expression
The QualifiedName class presents for the node of parse tree of qualified name.


Constructor Index

 o QualifiedName()
 o QualifiedName(Identifier)
 o QualifiedName(Identifier, Identifier)

Method Index

 o addElement(Identifier)
Adds the specified element after the list
 o append(QualifiedName)
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 This does't cause side-effect as a list.
 o insertElementAt(Identifier, int)
Inserts the specified element into the list before the specified element of the list.
 o isExpression()
 o lastElement()
 o make(String)
 o setElementAt(Identifier, int)
Sets the specified element at the specified place of the list
 o setLastElement(Identifier)
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o QualifiedName
 public QualifiedName()
 o QualifiedName
 public QualifiedName(Identifier e0)
 o QualifiedName
 public QualifiedName(Identifier e0,
                      Identifier e1)

Methods

 o isExpression
 public boolean isExpression()
 o make
 public static QualifiedName make(String str)
 o writeCode
 public void writeCode()
Writes the code this parse-tree presents for.

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

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

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

Returns:
s the first element
 o getRest
 public QualifiedName 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 Identifier lastElement()
 o setLastElement
 public void setLastElement(Identifier ident)
 o append
 public void append(QualifiedName lst)
Appends a list after this list. This doesn't cause side-effect as a list.

Parameters:
lst - a list to be appended

All Packages  Class Hierarchy  This Package  Previous  Next  Index