blob: 5233c1a5bdbd3e888817b2b20fe94d4c0fc88085 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2011 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package com.sun.jdi;
import java.util.List;
/**
* See http://docs.oracle.com/javase/6/docs/jdk/api/jpda/jdi/com/sun/jdi/ThreadReference.html
*/
public interface ThreadReference extends ObjectReference {
public static final int THREAD_STATUS_UNKNOWN = -1;
public static final int THREAD_STATUS_ZOMBIE = 0;
public static final int THREAD_STATUS_RUNNING = 1;
public static final int THREAD_STATUS_SLEEPING = 2;
public static final int THREAD_STATUS_MONITOR = 3;
public static final int THREAD_STATUS_WAIT = 4;
public static final int THREAD_STATUS_NOT_STARTED = 5;
public ObjectReference currentContendedMonitor() throws IncompatibleThreadStateException;
public StackFrame frame(int arg1) throws IncompatibleThreadStateException;
public int frameCount() throws IncompatibleThreadStateException;
public List<StackFrame> frames() throws IncompatibleThreadStateException;
public List<StackFrame> frames(int arg1, int arg2) throws IncompatibleThreadStateException;
public void interrupt();
public boolean isAtBreakpoint();
public boolean isSuspended();
public String name();
public List<ObjectReference> ownedMonitors() throws IncompatibleThreadStateException;
public void popFrames(StackFrame frame) throws IncompatibleThreadStateException;
public void resume();
public int status();
public void stop(ObjectReference arg1) throws InvalidTypeException;
public void suspend();
public int suspendCount();
public ThreadGroupReference threadGroup();
public void forceEarlyReturn(Value arg1) throws InvalidTypeException, ClassNotLoadedException, IncompatibleThreadStateException;
public List<MonitorInfo> ownedMonitorsAndFrames() throws IncompatibleThreadStateException;
}