1 19 20 package org.netbeans.api.debugger.jpda; 21 22 import com.sun.jdi.AbsentInformationException; 23 import com.sun.jdi.ThreadReference; 24 import java.beans.PropertyChangeListener ; 25 import java.util.List ; 26 import org.netbeans.spi.debugger.jpda.EditorContext; 27 import org.netbeans.spi.debugger.jpda.EditorContext.Operation; 28 29 30 40 public interface JPDAThread { 41 42 43 public static final int STATE_UNKNOWN = ThreadReference.THREAD_STATUS_UNKNOWN; 44 45 public static final int STATE_MONITOR = ThreadReference.THREAD_STATUS_MONITOR; 46 47 public static final int STATE_NOT_STARTED = ThreadReference.THREAD_STATUS_NOT_STARTED; 48 49 public static final int STATE_RUNNING = ThreadReference.THREAD_STATUS_RUNNING; 50 51 public static final int STATE_SLEEPING = ThreadReference.THREAD_STATUS_SLEEPING; 52 53 public static final int STATE_WAIT = ThreadReference.THREAD_STATUS_WAIT; 54 55 public static final int STATE_ZOMBIE = ThreadReference.THREAD_STATUS_ZOMBIE; 56 57 58 public static final String PROP_CALLSTACK = "callStack"; 59 60 public static final String PROP_VARIABLES = "variables"; 61 62 63 64 69 public abstract String getName (); 70 71 76 public abstract JPDAThreadGroup getParentThreadGroup (); 77 78 87 public abstract int getLineNumber (String stratum); 88 89 94 public abstract Operation getCurrentOperation(); 95 96 106 public abstract List <Operation> getLastOperations(); 107 108 113 public abstract int getState (); 114 115 120 public abstract boolean isSuspended (); 121 122 128 public abstract String getClassName (); 129 130 136 public abstract String getMethodName (); 137 138 141 public abstract void suspend (); 142 143 146 public abstract void resume (); 147 148 152 public abstract void interrupt(); 153 154 159 public abstract String getSourceName (String stratum) 160 throws AbsentInformationException; 161 162 167 public abstract String getSourcePath (String stratum) 168 throws AbsentInformationException; 169 170 179 public abstract CallStackFrame[] getCallStack () 180 throws AbsentInformationException; 181 182 193 public abstract CallStackFrame[] getCallStack (int from, int to) 194 throws AbsentInformationException; 195 196 201 public abstract int getStackDepth (); 202 203 208 public abstract void makeCurrent (); 209 210 215 public abstract ObjectVariable getContendedMonitor (); 216 217 222 public abstract ObjectVariable[] getOwnedMonitors (); 223 } 224 | Popular Tags |