Methods Summary |
---|
public ConstClass | catchType()return the exception specification
a null return value means a catch of any (try/finally)
return excCatchType;
|
public InsnTarget | endPC()return the end of the exception hander (exclusive)
return excEndPC;
|
public InsnTarget | handlerPC()return the exception handler code
return excHandlerPC;
|
void | print(java.io.PrintStream out, int indent)
ClassPrint.spaces(out, indent);
out.print("Exc Range:");//NOI18N
if (excCatchType == null)
out.print("any");//NOI18N
else
out.print("'" + excCatchType.asString() + "'");//NOI18N
out.print(" start = " + Integer.toString(excStartPC.offset()));//NOI18N
out.print(" end = " + Integer.toString(excEndPC.offset()));//NOI18N
out.println(" handle = " + Integer.toString(excHandlerPC.offset()));//NOI18N
|
static com.sun.jdo.api.persistence.enhancer.classfile.ExceptionRange | read(java.io.DataInputStream data, CodeEnv env)
InsnTarget startPC = env.getTarget(data.readUnsignedShort());
InsnTarget endPC = env.getTarget(data.readUnsignedShort());
InsnTarget handlerPC = env.getTarget(data.readUnsignedShort());
ConstClass catchType =
(ConstClass) env.pool().constantAt(data.readUnsignedShort());
return new ExceptionRange(startPC, endPC, handlerPC, catchType);
|
public InsnTarget | startPC()return the start of the exception hander (inclusive)
return excStartPC;
|
void | write(java.io.DataOutputStream out)
out.writeShort(excStartPC.offset());
out.writeShort(excEndPC.offset());
out.writeShort(excHandlerPC.offset());
out.writeShort(excCatchType == null ? 0 : excCatchType.getIndex());
|