Source code: netscape/jsdebug/JSThreadState.java
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * The contents of this file are subject to the Netscape Public
4 * License Version 1.1 (the "License"); you may not use this file
5 * except in compliance with the License. You may obtain a copy of
6 * the License at http://www.mozilla.org/NPL/
7 *
8 * Software distributed under the License is distributed on an "AS
9 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10 * implied. See the License for the specific language governing
11 * rights and limitations under the License.
12 *
13 * The Original Code is mozilla.org code.
14 *
15 * The Initial Developer of the Original Code is Netscape
16 * Communications Corporation. Portions created by Netscape are
17 * Copyright (C) 1998 Netscape Communications Corporation. All
18 * Rights Reserved.
19 *
20 * Contributor(s):
21 */
22
23 package netscape.jsdebug;
24
25 /**
26 * This is the JavaScript specific implementation of the thread state
27 *
28 * @author John Bandhauer
29 * @version 1.0
30 * @since 1.0
31 */
32 public final class JSThreadState extends ThreadStateBase
33 {
34 /**
35 * <B><font color="red">Not Implemented.</font></B>
36 * Always throws <code>InternalError("unimplemented")</code>
37 */
38 public static ThreadStateBase getThreadState(Thread t)
39 throws InvalidInfoException
40 {
41 throw new InternalError("unimplemented");
42 }
43
44 /**
45 * get the count of frames
46 */
47 public native int countStackFrames()
48 throws InvalidInfoException;
49
50 /**
51 * get the 'top' frame
52 */
53 public native StackFrameInfo getCurrentFrame()
54 throws InvalidInfoException;
55
56 /**
57 * <B><font color="red">Not Implemented.</font></B>
58 * Always throws <code>InternalError("unimplemented")</code>
59 */
60 public Thread getThread()
61 {
62 throw new InternalError("unimplemented");
63 }
64
65 /**
66 * <B><font color="red">Not Implemented.</font></B>
67 * Always throws <code>InternalError("unimplemented")</code>
68 */
69 public void leaveSuspended()
70 {
71 throw new InternalError("unimplemented");
72 }
73
74 /**
75 * <B><font color="red">Not Implemented.</font></B>
76 * Always throws <code>InternalError("unimplemented")</code>
77 */
78 protected void resume0()
79 {
80 throw new InternalError("unimplemented");
81 }
82
83 protected int nativeThreadState; /* used internally */
84 }