|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jreversepro.reflect.JException
JException is an abstraction of the exception table , that is an optional part of the Method attributes .
| Constructor Summary | |
JException(int rhsStart,
int rhsEnd,
int rhsHandler,
java.lang.String rhsType)
Constructor. |
|
| Method Summary | |
void |
addCatchBlock(int rhsHandlerPc,
java.lang.String rhsType)
Adds a new catch block to the code block { startpc, endpc } |
boolean |
containsANYCatchBlock()
|
boolean |
equals(java.lang.Object obj)
|
int |
getEffectiveEndPc(java.util.List instructions)
This minor adjustment of endPc with handler pc is necessary since in some cases the compiled code generated by javac and jikes are different. |
int |
getEndPc()
|
java.lang.String |
getExceptionClass(int rhsHandlerPc)
Given a pc, if an exceptiontable entry exists such that the the handler begins with this pc, then the handler type is returned. |
java.util.Enumeration |
getHandlers()
|
int |
getStartPc()
|
boolean |
isAny()
|
boolean |
sameTryBlock(JException exc)
Checks if the new exception block passed as parameter has the same code block { startpc, endpc } as the current one. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JException(int rhsStart,
int rhsEnd,
int rhsHandler,
java.lang.String rhsType)
rhsStart - StartPcrhsEnd - EndPcrhsHandler - HandlerPc of the first handler block
for the above mentioned code block.rhsType - Handler data type.| Method Detail |
public void addCatchBlock(int rhsHandlerPc,
java.lang.String rhsType)
rhsHandlerPc - Handler PcrhsType - Handler data type.public int getStartPc()
public int getEndPc()
public int getEffectiveEndPc(java.util.List instructions)
instructions - List of instructions.
public java.util.Enumeration getHandlers()
public java.lang.String getExceptionClass(int rhsHandlerPc)
rhsHandlerPc - HandlerPc for which type is queried.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object to be compared with.
public boolean sameTryBlock(JException exc)
exc - New Exception Block
public boolean containsANYCatchBlock()
public boolean isAny()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||