Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Compil3r.Quad
Class ExceptionHandlerIterator  view ExceptionHandlerIterator download ExceptionHandlerIterator.java

java.lang.Object
  extended byCompil3r.Quad.ExceptionHandlerIterator
All Implemented Interfaces:
java.util.Iterator, java.util.ListIterator, Util.Templates.ListIterator.ExceptionHandler

public class ExceptionHandlerIterator
extends java.lang.Object
implements Util.Templates.ListIterator.ExceptionHandler

Iterator for iterating through exception handlers. Compatible with ListIterator.

Version:
$Id: ExceptionHandlerIterator.java,v 1.8 2003/05/12 10:05:16 joewhaley Exp $

Field Summary
private  ExceptionHandlerList current
           
static ExceptionHandlerIterator EMPTY
          The empty basic block iterator.
private  ExceptionHandlerList root
           
 
Constructor Summary
ExceptionHandlerIterator(ExceptionHandlerList ehs)
          Creates new ExceptionHandlerIterator.
 
Method Summary
 void add(java.lang.Object o)
          Throws UnsupportedOperationException.
static ExceptionHandlerIterator getEmptyIterator()
          Return an empty, unmodifiable iterator.
 boolean hasNext()
          Returns true if this iterator has a next element.
 boolean hasPrevious()
          Returns true if this iterator has a previous element.
 java.lang.Object next()
          Returns the next element of this iterator.
 ExceptionHandler nextExceptionHandler()
          Returns the next element of this iterator, avoiding the cast.
 int nextIndex()
          Returns the index of the next element of this iterator.
 java.lang.Object previous()
          Returns the previous element of this iterator.
 ExceptionHandler previousExceptionHandler()
          Returns the previous element of this iterator, avoiding the cast.
 int previousIndex()
          Returns the index of the previous element of this iterator.
 void remove()
          Throws UnsupportedOperationException.
 void set(java.lang.Object o)
          Throws UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

private final ExceptionHandlerList root

current

private ExceptionHandlerList current

EMPTY

public static final ExceptionHandlerIterator EMPTY
The empty basic block iterator. Immutable.

Constructor Detail

ExceptionHandlerIterator

public ExceptionHandlerIterator(ExceptionHandlerList ehs)
Creates new ExceptionHandlerIterator.

Method Detail

hasNext

public boolean hasNext()
Returns true if this iterator has a next element.

Specified by:
hasNext in interface java.util.ListIterator

next

public java.lang.Object next()
Returns the next element of this iterator. Use nextExceptionHandler to avoid the cast.

Specified by:
next in interface java.util.ListIterator

nextExceptionHandler

public ExceptionHandler nextExceptionHandler()
Returns the next element of this iterator, avoiding the cast.

Specified by:
nextExceptionHandler in interface Util.Templates.ListIterator.ExceptionHandler

nextIndex

public int nextIndex()
Returns the index of the next element of this iterator.

Specified by:
nextIndex in interface java.util.ListIterator

hasPrevious

public boolean hasPrevious()
Returns true if this iterator has a previous element.

Specified by:
hasPrevious in interface java.util.ListIterator

previous

public java.lang.Object previous()
Returns the previous element of this iterator. Use previousExceptionHandler to avoid the cast.

Specified by:
previous in interface java.util.ListIterator

previousExceptionHandler

public ExceptionHandler previousExceptionHandler()
Returns the previous element of this iterator, avoiding the cast.

Specified by:
previousExceptionHandler in interface Util.Templates.ListIterator.ExceptionHandler

previousIndex

public int previousIndex()
Returns the index of the previous element of this iterator.

Specified by:
previousIndex in interface java.util.ListIterator

remove

public void remove()
Throws UnsupportedOperationException. (Removing is not supported.)

Specified by:
remove in interface java.util.ListIterator

set

public void set(java.lang.Object o)
Throws UnsupportedOperationException. (Setting is not supported.)

Specified by:
set in interface java.util.ListIterator

add

public void add(java.lang.Object o)
Throws UnsupportedOperationException. (Adding is not supported.)

Specified by:
add in interface java.util.ListIterator

getEmptyIterator

public static ExceptionHandlerIterator getEmptyIterator()
Return an empty, unmodifiable iterator.