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


Constructor Index

 o UtilityList()
Allocates this UtilityList
 o UtilityList(Object)
Allocates this UtilityList
 o UtilityList(Object, Object)
Allocates this UtilityList with the specified ptree elements.
 o UtilityList(Object, Object, Object)
Allocates this UtilityList with the specified ptree elements.
 o UtilityList(Object, Object, Object, Object)
Allocates this UtilityList with the specified ptree elements.

Method Index

 o append(UtilityList)
Appends a list after this list.
 o appendList(UtilityList, UtilityList)
NOT IMPLEMENTED q may be a leaf
 o getFirst()
Returns the first element
 o getLength()
Returns the length of this list.
 o getRest()
Returns the new list from this list's element except for the first element
 o listTail(UtilityList, int)
NOT IMPLEMENTED
 o makeCopy()
NOT IMPLEMENTED
 o map(Ptree, PtreeFunction)
NOT IMPLEMENTED
 o replace(Ptree, Ptree, Ptree)
NOT IMPLEMENTED replace() makes a new list (..
 o replaceAll(Ptree, Ptree, Ptree)
NOT EPLEMENTED replaceAll() substitutes SUBST for all occurences of ORIG in LIST.
 o replaceTail(Ptree, Ptree, Ptree)
NOT IMPLEMENTED replace() makes a new list (..
 o setList(Object)
Makes this ptree a list presenting for [ p ]
 o setList(Object, Object)
Makes this ptree a list presenting for [ p0 p1 ]
 o setList(Object, Object, Object)
Makes this ptree a list presenting for [ p0 p1 p2 ]
 o setList(Object, Object, Object, Object)
Makes this ptree a list presenting for [ p0 p1 p2 ]
 o setList(Object, Object, Object, Object, Object)
Makes this ptree a list presenting for [ p0 p1 p2 p3 p4 ]
 o setList(Object, Object, Object, Object, Object, Object)
Makes this ptree a list presenting for [ p0 p1 p2 p3 p4 p5 ]
 o setList(Object, Object, Object, Object, Object, Object, Object)
Makes this ptree a list presenting for [ p0 p1 p2 p3 p4 p5 p6 ]

Constructors

 o UtilityList
 public UtilityList()
Allocates this UtilityList

 o UtilityList
 public UtilityList(Object p)
Allocates this UtilityList

Parameters:
p0 - list's element
 o UtilityList
 public UtilityList(Object p0,
                    Object p1)
Allocates this UtilityList with the specified ptree elements.

Parameters:
p0 - list's element
p1 - list's element
 o 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
 o 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

Methods

 o getLength
 public int getLength()
Returns the length of this list.

Returns:
the length of this list
 o setList
 public void setList(Object p)
Makes this ptree a list presenting for [ p ]

Parameters:
p - list's element
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o append
 public void append(UtilityList q)
Appends a list after this list.

Parameters:
q - a list to be appended
 o getFirst
 public Object getFirst()
Returns the first element

Parameters:
p - the list
Returns:
s the first cons of the list
 o 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
 o 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
 o makeCopy
 public UtilityList makeCopy()
NOT IMPLEMENTED

Parameters:
p - the node
Returns:
s new copylist
 o 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
 o 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
 o 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
 o 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
 o 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