Methods Summary |
---|
public void | addElement(ExceptionRange range)Add an exception handler to the list
theVector.addElement(range);
|
public java.util.Enumeration | handlers()Return an enumeration of the exception handlers
Each element in the enumeration is an ExceptionRange
/* public accessors */
return theVector.elements();
|
void | print(java.io.PrintStream out, int indent)
ClassPrint.spaces(out, indent);
out.println("Exception Table: ");//NOI18N
for (int i=0; i<theVector.size(); i++)
((ExceptionRange) theVector.elementAt(i)).print(out, indent+2);
|
static com.sun.jdo.api.persistence.enhancer.classfile.ExceptionTable | read(java.io.DataInputStream data, CodeEnv env)
ExceptionTable excTable = new ExceptionTable();
int nExcepts = data.readUnsignedShort();
while (nExcepts-- > 0) {
excTable.addElement(ExceptionRange.read(data, env));
}
return excTable;
|
void | write(java.io.DataOutputStream out)
out.writeShort(theVector.size());
for (int i=0; i<theVector.size(); i++)
((ExceptionRange) theVector.elementAt(i)).write(out);
|