home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VPage / Java.bin / CLASSES.ZIP / sun / tools / debug / BreakpointSet.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-07-08  |  1.4 KB  |  60 lines

  1. package sun.tools.debug;
  2.  
  3. class BreakpointSet implements AgentConstants {
  4.    // $FF: renamed from: pc int
  5.    int field_0;
  6.    int opcode;
  7.    Class clazz;
  8.    int type;
  9.    byte[] condition;
  10.    int[] cohorts;
  11.    Thread thread;
  12.  
  13.    BreakpointSet(int var1, int var2, Class var3, int var4, byte[] var5) {
  14.       this.field_0 = var1;
  15.       this.opcode = var2;
  16.       this.clazz = var3;
  17.       this.type = var4;
  18.       this.condition = var5;
  19.       this.cohorts = null;
  20.       this.thread = null;
  21.    }
  22.  
  23.    void setUnconditional() {
  24.       this.type = 1;
  25.    }
  26.  
  27.    void addCondition(byte[] var1) {
  28.       this.type = 3;
  29.       this.condition = var1;
  30.    }
  31.  
  32.    void setCohorts(int[] var1) {
  33.       this.type = 4;
  34.       this.cohorts = var1;
  35.    }
  36.  
  37.    void setThread(Thread var1) {
  38.       this.thread = var1;
  39.    }
  40.  
  41.    public String toString() {
  42.       String var1 = null;
  43.       switch (this.type) {
  44.          case 1:
  45.             var1 = "normal";
  46.             break;
  47.          case 2:
  48.             var1 = "oneshot";
  49.             break;
  50.          case 3:
  51.             var1 = "conditional";
  52.             break;
  53.          case 4:
  54.             var1 = "scattershot";
  55.       }
  56.  
  57.       return "bkpt: pc=" + this.field_0 + ", opcode=" + this.opcode + ", type=" + var1;
  58.    }
  59. }
  60.