Methods Summary |
---|
public java.util.Enumeration | exceptions()Return an enumeration of the checked exceptions
/* public accessors */
return exceptionTable.elements();
|
void | print(java.io.PrintStream out, int indent)
ClassPrint.spaces(out, indent);
out.print("Exceptions:");//NOI18N
for (int i=0; i<exceptionTable.size(); i++)
out.print(" " + ((ConstClass) exceptionTable.elementAt(i)).asString());//NOI18N
out.println();
|
static com.sun.jdo.api.persistence.enhancer.classfile.ExceptionsAttribute | read(ConstUtf8 attrName, java.io.DataInputStream data, ConstantPool pool)
int nExcepts = data.readUnsignedShort();
Vector excTable = new Vector();
while (nExcepts-- > 0) {
int excIndex = data.readUnsignedShort();
ConstClass exc_class = null;
if (excIndex != 0)
exc_class = (ConstClass) pool.constantAt(excIndex);
excTable.addElement(exc_class);
}
return new ExceptionsAttribute(attrName, excTable);
|
void | write(java.io.DataOutputStream out)
out.writeShort(attrName().getIndex());
out.writeInt(2+2*exceptionTable.size());
out.writeShort(exceptionTable.size());
for (int i=0; i<exceptionTable.size(); i++)
out.writeShort(((ConstClass) exceptionTable.elementAt(i)).getIndex());
|