com.cyc.tool.subl.jrtl.nativeCode.subLisp
Class SubLArrayListListIterator

java.lang.Object
  extended by com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLArrayListListIterator
All Implemented Interfaces:
SubLListListIterator, java.util.Iterator, java.util.ListIterator

public final class SubLArrayListListIterator
extends java.lang.Object
implements SubLListListIterator, java.util.ListIterator

Author:
Tony Brusseau

Field Summary
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLListListIterator
ITERATE_TO_END
 
Method Summary
 void add(java.lang.Object o)
           
 SubLObject currentSubSeq()
           
 SubLObject getDottedElement()
          this method may throw an exception if the iterator isn't at the end of the list
 boolean hasNext()
           
 boolean hasPrevious()
           
 void init(SubLList list)
           
 void init(SubLList list, int start)
           
 void init(SubLList list, int start, int end)
           
 boolean isArrayBased()
           
 boolean isNextImproperElement()
          this method will throw an exception if the iterator isn't at the end of the list
 int itemsRemaining()
           
 java.lang.Object next()
           
 int nextIndex()
           
 SubLObject nextSubLObject()
           
 java.lang.Object previous()
           
 int previousIndex()
           
 SubLObject previousSubSeq()
           
 void remove()
           
 void reset()
           
 void set(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isArrayBased

public final boolean isArrayBased()
Specified by:
isArrayBased in interface SubLListListIterator

reset

public void reset()
Specified by:
reset in interface SubLListListIterator

init

public void init(SubLList list)
Specified by:
init in interface SubLListListIterator

init

public void init(SubLList list,
                 int start)
Specified by:
init in interface SubLListListIterator

init

public void init(SubLList list,
                 int start,
                 int end)
Specified by:
init in interface SubLListListIterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in interface java.util.ListIterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator
Specified by:
remove in interface java.util.ListIterator

isNextImproperElement

public boolean isNextImproperElement()
Description copied from interface: SubLListListIterator
this method will throw an exception if the iterator isn't at the end of the list

Specified by:
isNextImproperElement in interface SubLListListIterator

getDottedElement

public SubLObject getDottedElement()
Description copied from interface: SubLListListIterator
this method may throw an exception if the iterator isn't at the end of the list

Specified by:
getDottedElement in interface SubLListListIterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Specified by:
next in interface java.util.ListIterator

nextSubLObject

public SubLObject nextSubLObject()
Specified by:
nextSubLObject in interface SubLListListIterator

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface java.util.ListIterator

previous

public java.lang.Object previous()
Specified by:
previous in interface java.util.ListIterator

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface java.util.ListIterator

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface java.util.ListIterator

set

public void set(java.lang.Object o)
Specified by:
set in interface java.util.ListIterator

add

public void add(java.lang.Object o)
Specified by:
add in interface java.util.ListIterator

currentSubSeq

public SubLObject currentSubSeq()
Specified by:
currentSubSeq in interface SubLListListIterator

itemsRemaining

public int itemsRemaining()
Specified by:
itemsRemaining in interface SubLListListIterator

previousSubSeq

public SubLObject previousSubSeq()
Specified by:
previousSubSeq in interface SubLListListIterator