| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.isi.stella.Stella_Object
edu.isi.stella.StandardObject
edu.isi.stella.AbstractIterator
edu.isi.stella.Iterator
public abstract class Iterator
Instances of ITERATOR support iteration over collections of OBJECTs.
| Field Summary | |
|---|---|
 Stella_Object | 
value
The current value of this iterator  | 
| Fields inherited from class edu.isi.stella.AbstractIterator | 
|---|
firstIterationP | 
| Constructor Summary | |
|---|---|
Iterator()
 | 
|
| Method Summary | |
|---|---|
 Iterator | 
advance(int n)
Return 'self' after skipping over the first 'n' elements in the (remainder of the) iteration.  | 
 AllPurposeIterator | 
concatenate(Iterator iterator2,
            Cons otheriterators)
Return an iterator that first generates all values of iterator1, then those of iterator2, and then those of all otheriterators. | 
 Cons | 
consify()
Return a list of elements generated by self. | 
 boolean | 
emptyP()
Return TRUE if the sequence represented by 'self' has no elements.  | 
 List | 
listify()
Return a list of elements generated by self. | 
 boolean | 
memberP(Stella_Object value)
Iterate over values of 'self', returning TRUE if one of them is 'eql' to 'value.  | 
 Stella_Object | 
pop()
Return the first item of the sequence represented by 'self', or NULL if it is empty.  | 
static void | 
printClassList(Iterator self,
               OutputStream stream)
 | 
| Methods inherited from class edu.isi.stella.AbstractIterator | 
|---|
accessAbstractIteratorSlotValue, allocateIterator, length, nextP | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public Stella_Object value
| Constructor Detail | 
|---|
public Iterator()
| Method Detail | 
|---|
public static void printClassList(Iterator self,
                                  OutputStream stream)
public AllPurposeIterator concatenate(Iterator iterator2,
                                      Cons otheriterators)
iterator1, then those of iterator2, and then those of all otheriterators.
 The generated values can be filtered by supplying a filter function to the
 resulting iterator.
iterator2 - otheriterators - 
public boolean memberP(Stella_Object value)
value - 
public boolean emptyP()
public Iterator advance(int n)
n - 
public Stella_Object pop()
public List listify()
self.
public Cons consify()
self.
consify in class Stella_Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||