public class ExceptionStack extends Object
This keeps an internal Stack
of the INIT_*_BLOCKS which contain a program counter to
the jumping END_BLOCK instruction set (which depending on the type will execute a CATCH or FINALLY
block statements).
Constructor and Description |
---|
ExceptionStack() |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
int |
peekAddress() |
boolean |
peekIsCatch() |
boolean |
peekIsFinally() |
void |
pop()
Removes the top of the Stack
|
void |
pushCatch(int pc)
Push a Try block with a Catch statement on to the stack
|
void |
pushFinally(int pc)
Push a Try block with a Finally statement on to the stack
|
public boolean isEmpty()
public void pushFinally(int pc)
pc
- the program counter (instruction index) to jump
topublic void pushCatch(int pc)
pc
- the program counter (instruction index) to jump
topublic boolean peekIsFinally()
public boolean peekIsCatch()
public int peekAddress()
public void pop()
Copyright © 2010–2015. All rights reserved.