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.
-
QualifiedName()
-
-
QualifiedName(Identifier)
-
-
QualifiedName(Identifier, Identifier)
-
-
addElement(Identifier)
- Adds the specified element after the list
-
append(QualifiedName)
- 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
This does't cause side-effect as a list.
-
insertElementAt(Identifier, int)
- Inserts the specified element into the list
before the specified element of the list.
-
isExpression()
-
-
lastElement()
-
-
make(String)
-
-
setElementAt(Identifier, int)
- Sets the specified element at the specified place of the list
-
setLastElement(Identifier)
-
-
writeCode()
- Writes the code this parse-tree presents for.
QualifiedName
public QualifiedName()
QualifiedName
public QualifiedName(Identifier e0)
QualifiedName
public QualifiedName(Identifier e0,
Identifier e1)
isExpression
public boolean isExpression()
make
public static QualifiedName make(String str)
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class List
elementAt
public Identifier elementAt(int n)
- Gets the specified element at
This causes side-effect.
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
addElement
public void addElement(Identifier p)
- Adds the specified element after the list
- Parameters:
- p - Identifier to be inserted into the list
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
getFirst
public Identifier getFirst()
- Returns the first element
- Returns:
- s the first element
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
lastElement
public Identifier lastElement()
setLastElement
public void setLastElement(Identifier ident)
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