1 19 20 package org.netbeans.api.debugger.jpda.event; 21 22 import com.sun.jdi.ReferenceType; 23 import java.util.EventObject ; 24 import org.netbeans.api.debugger.jpda.*; 25 26 31 public final class JPDABreakpointEvent extends EventObject { 32 33 34 public static final int CONDITION_NONE = 0; 35 36 public static final int CONDITION_TRUE = 1; 37 38 public static final int CONDITION_FALSE = 2; 39 40 public static final int CONDITION_FAILED = 3; 41 42 43 private int conditionResult = CONDITION_FAILED; 44 private Throwable conditionException = null; 45 private JPDADebugger debugger; 46 private JPDAThread thread; 47 private ReferenceType referenceType; 48 private Variable variable; 49 private boolean resume = false; 50 51 52 64 public JPDABreakpointEvent ( 65 JPDABreakpoint sourceBreakpoint, 66 JPDADebugger debugger, 67 int conditionResult, 68 JPDAThread thread, 69 ReferenceType referenceType, 70 Variable variable 71 ) { 72 super (sourceBreakpoint); 73 this.conditionResult = conditionResult; 74 this.thread = thread; 75 this.debugger = debugger; 76 this.referenceType = referenceType; 77 this.variable = variable; 78 } 79 80 90 public JPDABreakpointEvent ( 91 JPDABreakpoint sourceBreakpoint, 92 JPDADebugger debugger, 93 Throwable conditionException, 94 JPDAThread thread, 95 ReferenceType referenceType, 96 Variable variable 97 ) { 98 super (sourceBreakpoint); 99 this.conditionResult = CONDITION_FAILED; 100 this.conditionException = conditionException; 101 this.thread = thread; 102 this.debugger = debugger; 103 this.referenceType = referenceType; 104 this.variable = variable; 105 } 106 107 112 public int getConditionResult () { 113 return conditionResult; 114 } 115 116 121 public Throwable getConditionException () { 122 return conditionException; 123 } 124 125 133 public JPDAThread getThread () { 134 return thread; 135 } 136 137 143 public ReferenceType getReferenceType () { 144 return referenceType; 145 } 146 147 152 public JPDADebugger getDebugger () { 153 return debugger; 154 } 155 156 162 public Variable getVariable () { 163 return variable; 164 } 165 166 171 public void resume () { 172 resume = true; 173 } 174 175 178 public boolean getResume () { 179 return resume; 180 } 181 } 182 | Popular Tags |