All Packages Class Hierarchy This Package Previous Next Index
Class openjava.tools.UtilityList
java.lang.Object
|
+----java.util.Vector
|
+----openjava.tools.UtilityList
- public class UtilityList
- extends Vector
The UtilityList class is a utitlity list
-
UtilityList()
- Allocates this UtilityList
-
UtilityList(Object)
- Allocates this UtilityList
-
UtilityList(Object, Object)
- Allocates this UtilityList with the specified ptree elements.
-
UtilityList(Object, Object, Object)
- Allocates this UtilityList with the specified ptree elements.
-
UtilityList(Object, Object, Object, Object)
- Allocates this UtilityList with the specified ptree elements.
-
append(UtilityList)
- Appends a list after this list.
-
appendList(UtilityList, UtilityList)
- NOT IMPLEMENTED
q may be a leaf
-
getFirst()
- Returns the first element
-
getLength()
- Returns the length of this list.
-
getRest()
- Returns the new list from this list's element except for
the first element
-
listTail(UtilityList, int)
- NOT IMPLEMENTED
-
makeCopy()
- NOT IMPLEMENTED
-
map(Ptree, PtreeFunction)
- NOT IMPLEMENTED
-
replace(Ptree, Ptree, Ptree)
- NOT IMPLEMENTED
replace() makes a new list (..
-
replaceAll(Ptree, Ptree, Ptree)
- NOT EPLEMENTED
replaceAll() substitutes SUBST for all occurences of ORIG in LIST.
-
replaceTail(Ptree, Ptree, Ptree)
- NOT IMPLEMENTED
replace() makes a new list (..
-
setList(Object)
- Makes this ptree a list presenting for
[ p ]
-
setList(Object, Object)
- Makes this ptree a list presenting for
[ p0 p1 ]
-
setList(Object, Object, Object)
- Makes this ptree a list presenting for
[ p0 p1 p2 ]
-
setList(Object, Object, Object, Object)
- Makes this ptree a list presenting for
[ p0 p1 p2 ]
-
setList(Object, Object, Object, Object, Object)
- Makes this ptree a list presenting for
[ p0 p1 p2 p3 p4 ]
-
setList(Object, Object, Object, Object, Object, Object)
- Makes this ptree a list presenting for
[ p0 p1 p2 p3 p4 p5 ]
-
setList(Object, Object, Object, Object, Object, Object, Object)
- Makes this ptree a list presenting for
[ p0 p1 p2 p3 p4 p5 p6 ]
UtilityList
public UtilityList()
- Allocates this UtilityList
UtilityList
public UtilityList(Object p)
- Allocates this UtilityList
- Parameters:
- p0 - list's element
UtilityList
public UtilityList(Object p0,
Object p1)
- Allocates this UtilityList with the specified ptree elements.
- Parameters:
- p0 - list's element
- p1 - list's element
UtilityList
public UtilityList(Object p0,
Object p1,
Object p2)
- Allocates this UtilityList with the specified ptree elements.
- Parameters:
- p0 - list's element
- p1 - list's element
- p2 - list's element
UtilityList
public UtilityList(Object p0,
Object p1,
Object p2,
Object p3)
- Allocates this UtilityList with the specified ptree elements.
- Parameters:
- p0 - list's element
- p1 - list's element
- p2 - list's element
- p3 - list's element
getLength
public int getLength()
- Returns the length of this list.
- Returns:
- the length of this list
setList
public void setList(Object p)
- Makes this ptree a list presenting for
[ p ]
- Parameters:
- p - list's element
setList
public void setList(Object p0,
Object p1)
- Makes this ptree a list presenting for
[ p0 p1 ]
- Parameters:
- p0 - list's element
- p1 - list's element
setList
public void setList(Object p0,
Object p1,
Object p2)
- Makes this ptree a list presenting for
[ p0 p1 p2 ]
- Parameters:
- p0 - list's element
- p1 - list's element
- p2 - list's element
setList
public void setList(Object p0,
Object p1,
Object p2,
Object p3)
- Makes this ptree a list presenting for
[ p0 p1 p2 ]
- Parameters:
- p0 - list's element
- p1 - list's element
- p2 - list's element
- p3 - list's element
setList
public void setList(Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
- Makes this ptree a list presenting for
[ p0 p1 p2 p3 p4 ]
- Parameters:
- p0 - list's element
- p1 - list's element
- p2 - list's element
- p3 - list's element
- p4 - list's element
setList
public void setList(Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
- Makes this ptree a list presenting for
[ p0 p1 p2 p3 p4 p5 ]
- Parameters:
- p0 - list's element
- p1 - list's element
- p2 - list's element
- p3 - list's element
- p4 - list's element
- p5 - list's element
setList
public void setList(Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6)
- Makes this ptree a list presenting for
[ p0 p1 p2 p3 p4 p5 p6 ]
- Parameters:
- p0 - list's element
- p1 - list's element
- p2 - list's element
- p3 - list's element
- p4 - list's element
- p5 - list's element
- p6 - list's element
append
public void append(UtilityList q)
- Appends a list after this list.
- Parameters:
- q - a list to be appended
getFirst
public Object getFirst()
- Returns the first element
- Parameters:
- p - the list
- Returns:
- s the first cons of the list
getRest
public UtilityList getRest()
- Returns the new list from this list's element except for
the first element
- Parameters:
- p - the list
- Returns:
- s the rest list except for the first cons
listTail
public static UtilityList listTail(UtilityList list,
int k)
- NOT IMPLEMENTED
- Parameters:
- p - the node
- k - Kth
- Returns:
- s the Kth or the tail of the list
makeCopy
public UtilityList makeCopy()
- NOT IMPLEMENTED
- Parameters:
- p - the node
- Returns:
- s new copylist
appendList
public static UtilityList appendList(UtilityList p,
UtilityList q)
- NOT IMPLEMENTED
q may be a leaf
- Parameters:
- p - the node
- q - the node
- Returns:
- s new list
replaceAll
public static Ptree replaceAll(Ptree list,
Ptree orig,
Ptree subst)
- NOT EPLEMENTED
replaceAll() substitutes SUBST for all occurences of ORIG in LIST.
It recursively searches LIST for ORIG.
- Parameters:
- list - the list
- pos - the position to substitute element at
- orig - the original node
- Returns:
- s new list
replace
public static Ptree replace(Ptree list,
Ptree orig_element,
Ptree new_element)
- NOT IMPLEMENTED
replace() makes a new list (.. new_element ..)
from (.. orig_element ..).
- Parameters:
- list - the list
- orig_element - original element
- new_element - new element
- Returns:
- s new list
replaceTail
public static Ptree replaceTail(Ptree list,
Ptree original,
Ptree subst)
- NOT IMPLEMENTED
replace() makes a new list (.. new_element ..) from (.. orig_element ..).
- Parameters:
- list - the list
- orig_element - original element
- new_element - new element
- Returns:
- s new list
map
public static Ptree map(Ptree expr,
PtreeFunction func)
- NOT IMPLEMENTED
- Parameters:
- env - the environment node
- expr - the expression node
- func - the mapping function class
- Returns:
- s new list
All Packages Class Hierarchy This Package Previous Next Index