|
|||||||||
Home >> All >> Compil3r >> [ Quad overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
Compil3r.Quad
Class ExceptionHandlerIterator

java.lang.ObjectCompil3r.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
- extends java.lang.Object
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 interfacejava.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 interfacejava.util.ListIterator
nextExceptionHandler
public ExceptionHandler nextExceptionHandler()
- Returns the next element of this iterator, avoiding the cast.
- Specified by:
nextExceptionHandler
in interfaceUtil.Templates.ListIterator.ExceptionHandler
nextIndex
public int nextIndex()
- Returns the index of the next element of this iterator.
- Specified by:
nextIndex
in interfacejava.util.ListIterator
hasPrevious
public boolean hasPrevious()
- Returns true if this iterator has a previous element.
- Specified by:
hasPrevious
in interfacejava.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 interfacejava.util.ListIterator
previousExceptionHandler
public ExceptionHandler previousExceptionHandler()
- Returns the previous element of this iterator, avoiding the cast.
- Specified by:
previousExceptionHandler
in interfaceUtil.Templates.ListIterator.ExceptionHandler
previousIndex
public int previousIndex()
- Returns the index of the previous element of this iterator.
- Specified by:
previousIndex
in interfacejava.util.ListIterator
remove
public void remove()
- Throws UnsupportedOperationException. (Removing is not supported.)
- Specified by:
remove
in interfacejava.util.ListIterator
set
public void set(java.lang.Object o)
- Throws UnsupportedOperationException. (Setting is not supported.)
- Specified by:
set
in interfacejava.util.ListIterator
add
public void add(java.lang.Object o)
- Throws UnsupportedOperationException. (Adding is not supported.)
- Specified by:
add
in interfacejava.util.ListIterator
getEmptyIterator
public static ExceptionHandlerIterator getEmptyIterator()
- Return an empty, unmodifiable iterator.
|
|||||||||
Home >> All >> Compil3r >> [ Quad overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |