|
What this is
Other links
The source code/*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code is NetBeans. The Initial Developer of the Original
* Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
* Microsystems, Inc. All Rights Reserved.
*/
package org.netbeans.api.debugger.jpda;
import com.sun.jdi.ThreadReference;
import java.beans.PropertyChangeListener;
import org.netbeans.spi.viewmodel.NoInformationException;
/**
* Represents one Java thread in debugged process.
*
* @author Jan Jancura
*/
public interface JPDAThread {
/** Thread state constant. */
public static final int STATE_UNKNOWN = ThreadReference.THREAD_STATUS_UNKNOWN;
/** Thread state constant. */
public static final int STATE_MONITOR = ThreadReference.THREAD_STATUS_MONITOR;
/** Thread state constant. */
public static final int STATE_NOT_STARTED = ThreadReference.THREAD_STATUS_NOT_STARTED;
/** Thread state constant. */
public static final int STATE_RUNNING = ThreadReference.THREAD_STATUS_RUNNING;
/** Thread state constant. */
public static final int STATE_SLEEPING = ThreadReference.THREAD_STATUS_SLEEPING;
/** Thread state constant. */
public static final int STATE_WAIT = ThreadReference.THREAD_STATUS_WAIT;
/** Thread state constant. */
public static final int STATE_ZOMBIE = ThreadReference.THREAD_STATUS_ZOMBIE;
/** Property name constant. */
public static final String PROP_CALLSTACK = "callStack";
/** Property name constant. */
public static final String PROP_VARIABLES = "variables";
/**
* Getter for the name of thread property.
*
* @return name of thread
*/
public abstract String getName ();
/**
* Returns parent thread group.
*
* @return parent thread group
*/
public abstract JPDAThreadGroup getParentThreadGroup ();
/**
* Returns line number of the location this thread stopped at.
* The thread should be suspended at the moment this method is called.
*
* @return line number of the current location if the thread is suspended,
* contains at least one frame and the topmost frame does not
* represent a native method invocation;
|
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.