author | Eugene Ostroukhov <eugeneo@symbian.org> |
Mon, 07 Jun 2010 16:51:19 -0700 | |
changeset 355 | 8726e95bcbba |
parent 52 | f577ea64429e |
permissions | -rw-r--r-- |
2 | 1 |
// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 |
// Use of this source code is governed by a BSD-style license that can be |
|
3 |
// found in the LICENSE file. |
|
4 |
||
5 |
package org.chromium.sdk; |
|
6 |
||
7 |
import java.util.Collection; |
|
8 |
import java.util.List; |
|
9 |
||
10 |
/** |
|
11 |
* An object that represents a browser JavaScript VM call frame. |
|
12 |
*/ |
|
13 |
public interface CallFrame { |
|
14 |
||
15 |
/** |
|
16 |
* @return the variables known in this frame, including the receiver variable |
|
17 |
* @deprecated in favor of {@link #getVariableScopes()} |
|
18 |
*/ |
|
19 |
@Deprecated |
|
20 |
Collection<? extends JsVariable> getVariables(); |
|
21 |
||
22 |
/** |
|
23 |
* @return the scopes known in this frame; ordered, innermost first, global scope last |
|
24 |
*/ |
|
25 |
List<? extends JsScope> getVariableScopes(); |
|
26 |
||
27 |
/** |
|
28 |
* @return the receiver variable known in this frame |
|
29 |
*/ |
|
30 |
JsVariable getReceiverVariable(); |
|
31 |
||
32 |
/** |
|
33 |
* @return the current line number in the Script corresponding to this frame |
|
34 |
* (0-based) or {@code -1} if unknown |
|
355
8726e95bcbba
Initial commit of updated Chrome Java SDK
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
52
diff
changeset
|
35 |
* TODO(peter.rybin): consider returning absolute line number here, not in-script number. |
2 | 36 |
*/ |
37 |
int getLineNumber(); |
|
38 |
||
39 |
/** |
|
40 |
* @return the start character position in the line corresponding to the |
|
41 |
* current statement of this frame or {@code -1} if unknown |
|
42 |
*/ |
|
43 |
int getCharStart(); |
|
44 |
||
45 |
/** |
|
46 |
* @return the end character position in the line corresponding to the current |
|
47 |
* statement of this frame or {@code -1} if unknown |
|
48 |
*/ |
|
49 |
int getCharEnd(); |
|
50 |
||
51 |
/** |
|
52 |
* @return the source script this call frame is associated with. {@code null} |
|
53 |
* if no script is associated with the call frame (e.g. an exception |
|
54 |
* could have been thrown in a native script) |
|
55 |
*/ |
|
56 |
Script getScript(); |
|
57 |
||
58 |
/** |
|
59 |
* @return the name of the current function of this frame |
|
60 |
*/ |
|
61 |
String getFunctionName(); |
|
62 |
||
63 |
/** |
|
52
f577ea64429e
Migrated to unmodified Chromium Development Tools version
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
64 |
* @return context for evaluating expressions in scope of this frame |
2 | 65 |
*/ |
52
f577ea64429e
Migrated to unmodified Chromium Development Tools version
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
66 |
JsEvaluateContext getEvaluateContext(); |
2 | 67 |
} |