|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjoeq.Compiler.Quad.ExceptionHandlerIterator
public class ExceptionHandlerIterator
Iterator for iterating through exception handlers. Compatible with ListIterator.
ListIterator,
ExceptionHandler| Field Summary | |
|---|---|
static ExceptionHandlerIterator |
EMPTY
The empty basic block iterator. |
| Constructor Summary | |
|---|---|
ExceptionHandlerIterator(ExceptionHandlerList ehs)
Creates new ExceptionHandlerIterator. |
|
| Method Summary | |
|---|---|
void |
add(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. |
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. |
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(Object o)
Throws UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ExceptionHandlerIterator EMPTY
| Constructor Detail |
|---|
public ExceptionHandlerIterator(ExceptionHandlerList ehs)
ehs - list of exception handlers to iterate through.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorpublic Object next()
next in interface Iteratornext in interface ListIteratornextExceptionHandler()public ExceptionHandler nextExceptionHandler()
nextExceptionHandler in interface ListIterator.ExceptionHandlernext()public int nextIndex()
nextIndex in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpreviousExceptionHandler()public ExceptionHandler previousExceptionHandler()
previousExceptionHandler in interface ListIterator.ExceptionHandlerprevious()public int previousIndex()
previousIndex in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorUnsupportedOperationException - alwayspublic void set(Object o)
set in interface ListIteratorUnsupportedOperationException - alwayspublic void add(Object o)
add in interface ListIteratorUnsupportedOperationException - alwayspublic static ExceptionHandlerIterator getEmptyIterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||