home *** CD-ROM | disk | FTP | other *** search
- package sun.tools.debug;
-
- class BreakpointSet implements AgentConstants {
- // $FF: renamed from: pc int
- int field_0;
- int opcode;
- Class clazz;
- int type;
- byte[] condition;
- int[] cohorts;
- Thread thread;
-
- BreakpointSet(int var1, int var2, Class var3, int var4, byte[] var5) {
- this.field_0 = var1;
- this.opcode = var2;
- this.clazz = var3;
- this.type = var4;
- this.condition = var5;
- this.cohorts = null;
- this.thread = null;
- }
-
- void setUnconditional() {
- this.type = 1;
- }
-
- void addCondition(byte[] var1) {
- this.type = 3;
- this.condition = var1;
- }
-
- void setCohorts(int[] var1) {
- this.type = 4;
- this.cohorts = var1;
- }
-
- void setThread(Thread var1) {
- this.thread = var1;
- }
-
- public String toString() {
- String var1 = null;
- switch (this.type) {
- case 1:
- var1 = "normal";
- break;
- case 2:
- var1 = "oneshot";
- break;
- case 3:
- var1 = "conditional";
- break;
- case 4:
- var1 = "scattershot";
- }
-
- return "bkpt: pc=" + this.field_0 + ", opcode=" + this.opcode + ", type=" + var1;
- }
- }
-