All Packages Class Hierarchy This Package Previous Next Index
Class openjava.ptree.ModifierList
java.lang.Object
|
+----openjava.ptree.PtreeObject
|
+----openjava.ptree.List
|
+----openjava.ptree.ModifierList
- public class ModifierList
- extends List
The ModifierList class presents for the node of parse tree
of qualified name.
-
ModifierList()
-
-
ModifierList(Modifier)
-
-
ModifierList(Modifier, Modifier)
-
-
addElement(Modifier)
- Adds the specified element after the list
This causes side-effect.
-
append(ModifierList)
- 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(Modifier, int)
- Inserts the specified element into the list
before the specified element of the list.
-
setElementAt(Modifier, int)
- Sets the specified element at the specified place of the list
-
writeCode()
- Writes the code this parse-tree presents for.
ModifierList
public ModifierList()
ModifierList
public ModifierList(Modifier e0)
ModifierList
public ModifierList(Modifier e0,
Modifier e1)
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class List
elementAt
public Modifier elementAt(int n)
- Gets the specified element at
This causes side-effect.
setElementAt
public void setElementAt(Modifier 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(Modifier p)
- Adds the specified element after the list
This causes side-effect.
- Parameters:
- p - Modifier to be inserted into the list
insertElementAt
public void insertElementAt(Modifier 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 Modifier getFirst()
- Returns the first element
- Returns:
- s the first element
getRest
public ModifierList 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
append
public void append(ModifierList lst)
- Appends a list after this list.
- Parameters:
- lst - a list to be appended
All Packages Class Hierarchy This Package Previous Next Index