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.internal.protocol;
|
|
6 |
|
|
7 |
import java.util.List;
|
|
8 |
|
|
9 |
import org.chromium.sdk.internal.protocol.data.PropertyObject;
|
|
10 |
import org.chromium.sdk.internal.protocol.data.SomeHandle;
|
|
11 |
import org.chromium.sdk.internal.protocol.data.SomeRef;
|
|
12 |
import org.chromium.sdk.internal.protocolparser.JsonOptionalField;
|
|
13 |
import org.chromium.sdk.internal.protocolparser.JsonType;
|
|
14 |
import org.json.simple.JSONObject;
|
|
15 |
|
|
16 |
/**
|
|
17 |
* A frame mirror object type. Technically it is almost subtype of {@link SomeHandle}:
|
|
18 |
* it gets serialized from the same code; however, it never gets handle field so
|
|
19 |
* we have to treat it as a separate type. Hopefully frame object will never
|
|
20 |
* get mixed with other objects on remote side.
|
|
21 |
*/
|
|
22 |
@JsonType
|
|
23 |
public interface FrameObject {
|
|
24 |
|
|
25 |
long getIndex();
|
|
26 |
|
|
27 |
JSONObject getFunc();
|
|
28 |
|
|
29 |
String getText();
|
|
30 |
|
|
31 |
long getLine();
|
|
32 |
|
|
33 |
String getSourceLineText();
|
|
34 |
|
|
35 |
@JsonOptionalField
|
|
36 |
SomeRef getScript();
|
|
37 |
|
|
38 |
List<PropertyObject> getArguments();
|
|
39 |
|
|
40 |
List<PropertyObject> getLocals();
|
|
41 |
|
|
42 |
SomeRef getReceiver();
|
|
43 |
|
|
44 |
List<ScopeRef> getScopes();
|
|
45 |
|
|
46 |
Boolean constructCall();
|
|
47 |
|
|
48 |
String type();
|
|
49 |
|
|
50 |
Long position();
|
|
51 |
|
|
52 |
Long column();
|
|
53 |
|
|
54 |
Boolean debuggerFrame();
|
|
55 |
|
|
56 |
}
|