OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.sdk; | 5 package org.chromium.sdk; |
6 | 6 |
7 /** | 7 /** |
8 * An object that represents a variable in a browser JavaScript VM call frame. | 8 * An object that represents a variable in a browser JavaScript VM call frame. |
9 */ | 9 */ |
10 public interface JsVariable { | 10 public interface JsVariable { |
(...skipping 17 matching lines...) Expand all Loading... |
28 * | 28 * |
29 * @return a [probably compound] JsValue corresponding to this variable. | 29 * @return a [probably compound] JsValue corresponding to this variable. |
30 * {@code null} if there was an error reading the value data | 30 * {@code null} if there was an error reading the value data |
31 * or the property has accessor descriptor | 31 * or the property has accessor descriptor |
32 * @see #isReadable() | 32 * @see #isReadable() |
33 * @throws UnsupportedOperationException if this variable is not readable | 33 * @throws UnsupportedOperationException if this variable is not readable |
34 */ | 34 */ |
35 JsValue getValue() throws UnsupportedOperationException; | 35 JsValue getValue() throws UnsupportedOperationException; |
36 | 36 |
37 /** | 37 /** |
| 38 * Returns variable name. If the variable is an object property, in some imple
mentations |
| 39 * (namely V8 Standalone protocol) the numeric property name may be decorated |
| 40 * with square brackets. |
38 * @return the name of this variable | 41 * @return the name of this variable |
| 42 * TODO: do not decorate property name with square brackets, |
| 43 * http://code.google.com/p/chromedevtools/issues/detail?id=77 |
39 */ | 44 */ |
40 String getName(); | 45 String getName(); |
41 | 46 |
42 /** | 47 /** |
43 * @return whether it is possible to modify this variable | 48 * @return whether it is possible to modify this variable |
44 */ | 49 */ |
45 boolean isMutable(); | 50 boolean isMutable(); |
46 | 51 |
47 /** | 52 /** |
48 * Sets a new value for this variable. | 53 * Sets a new value for this variable. |
(...skipping 11 matching lines...) Expand all Loading... |
60 * of its call frame | 65 * of its call frame |
61 */ | 66 */ |
62 String getFullyQualifiedName(); | 67 String getFullyQualifiedName(); |
63 | 68 |
64 /** | 69 /** |
65 * Returns object property data if variable is an object property and its desc
riptor | 70 * Returns object property data if variable is an object property and its desc
riptor |
66 * is available. | 71 * is available. |
67 */ | 72 */ |
68 JsObjectProperty asObjectProperty(); | 73 JsObjectProperty asObjectProperty(); |
69 } | 74 } |
OLD | NEW |