|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList joeq.Compiler.Quad.ExceptionHandlerList
public class ExceptionHandlerList
Holds a list of exception handlers that protect a basic block. It includes a reference to a parent exception handler list, to handle nesting of exception handlers. These form a tree structure where each node has a pointer to its parent.
ExceptionHandler
,
ExceptionHandlerIterator
Field Summary | |
---|---|
static ExceptionHandlerList |
EMPTY
|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ExceptionHandlerList(ExceptionHandler exception_handler)
Creates new ExceptionHandlerList containing the given exception handler and no parent set. |
|
ExceptionHandlerList(ExceptionHandler exception_handler,
ExceptionHandlerList parent)
Creates new ExceptionHandlerList containing the given exception handler and parent set. |
Method Summary | |
---|---|
ListIterator.ExceptionHandler |
exceptionHandlerIterator()
Return an iteration over the handlers in this set (and the handlers in parent sets). |
Object |
get(int index)
|
static ExceptionHandlerList |
getEmptyList()
|
ExceptionHandler |
getExceptionHandler(int index)
|
ExceptionHandler |
getHandler()
Return the handler in this set. |
ExceptionHandlerList |
getParent()
Return the parent set of exception handlers, or null if this set doesn't have a parent. |
Iterator |
iterator()
|
ListIterator |
listIterator()
|
List.ExceptionHandler |
mayCatch(Collection exTypes)
Returns the list of exception handlers in this list that MAY catch the given exception type. |
List.ExceptionHandler |
mayCatch(jq_Class exType)
Returns the list of exception handlers in this list that MAY catch the given exception type. |
ExceptionHandler |
mustCatch(jq_Class exType)
Returns the first exception handler in the list that MUST catch an exception of the given type, or null if there is no handler that must catch it. |
void |
setHandler(ExceptionHandler eh)
|
void |
setParent(ExceptionHandlerList p)
|
int |
size()
|
Methods inherited from class java.util.AbstractList |
---|
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, remove, removeRange, set, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
Field Detail |
---|
public static final ExceptionHandlerList EMPTY
Constructor Detail |
---|
public ExceptionHandlerList(ExceptionHandler exception_handler)
exception_handler
- exception handler to include in the set.public ExceptionHandlerList(ExceptionHandler exception_handler, ExceptionHandlerList parent)
exception_handler
- exception handler to include in the set.parent
- the parent set of exception handlers.Method Detail |
---|
public ExceptionHandler getHandler()
public void setHandler(ExceptionHandler eh)
public ExceptionHandlerList getParent()
public void setParent(ExceptionHandlerList p)
public ExceptionHandler mustCatch(jq_Class exType)
public List.ExceptionHandler mayCatch(jq_Class exType)
public List.ExceptionHandler mayCatch(Collection exTypes)
public ListIterator.ExceptionHandler exceptionHandlerIterator()
exceptionHandlerIterator
in interface List.ExceptionHandler
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
iterator
in class AbstractList
public ListIterator listIterator()
listIterator
in interface List
listIterator
in class AbstractList
public ExceptionHandler getExceptionHandler(int index)
getExceptionHandler
in interface List.ExceptionHandler
public Object get(int index)
get
in interface List
get
in class AbstractList
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public static ExceptionHandlerList getEmptyList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |