home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 March / maximum-cd-1999-03.iso / Feature / Lotus / ORGANIZE / COMPNENT / LTOUIN21.ZIP / sunw / demo / classfile / ExceptionTableEntry.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-03-12  |  873 b   |  31 lines

  1. package sunw.demo.classfile;
  2.  
  3. import java.io.DataOutputStream;
  4. import java.io.IOException;
  5.  
  6. final class ExceptionTableEntry {
  7.    private short startPC;
  8.    private short stopPC;
  9.    private short handlerPC;
  10.    private ClassConstant exceptionType;
  11.  
  12.    ExceptionTableEntry(short var1, short var2, short var3, ClassConstant var4) {
  13.       this.startPC = var1;
  14.       this.stopPC = var2;
  15.       this.handlerPC = var3;
  16.       this.exceptionType = var4;
  17.    }
  18.  
  19.    void write(DataOutputStream var1) throws IOException {
  20.       var1.writeShort(this.startPC);
  21.       var1.writeShort(this.stopPC);
  22.       var1.writeShort(this.handlerPC);
  23.       if (this.exceptionType != null) {
  24.          var1.writeShort(this.exceptionType.getConstantPoolIndex());
  25.       } else {
  26.          var1.writeShort(0);
  27.       }
  28.  
  29.    }
  30. }
  31.