ScriptDebugger.java
1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa;
import com.adobe.xfa.Arg;
import com.adobe.xfa.Node;
import com.adobe.xfa.ScriptHandler;
import java.util.ArrayList;
import java.util.List;
public class ScriptDebugger {
private final List<ScriptHandler> moScriptHandlers = new ArrayList<ScriptHandler>();
public int getScriptID(ScriptHandler oScriptHandler, String sScriptContents, Node oContextNode, int eReason) {
return -1;
}
public int getScriptID(ScriptHandler oScriptHandler, String sScriptContents, String sContextNodeSOM, int eReason) {
return -1;
}
public void willExecuteScript(int nScriptID) {
}
public void didExecuteScript(int nScriptID, Arg oReturnValue) {
}
public void stopped(int nScriptID, int nLine) {
}
public void resolvedValue(String sValueName, Arg oRetrievedValue) {
}
public void poll(ScriptHandler oScriptHandler) {
}
boolean isActive() {
return true;
}
void detach(ScriptHandler oScriptHandler) {
}
protected void private_attach(ScriptHandler oScriptHandler) {
assert (oScriptHandler != null);
this.moScriptHandlers.add(oScriptHandler);
}
protected void private_detach(ScriptHandler oScriptHandler) {
assert (oScriptHandler != null);
this.detach(oScriptHandler);
for (int i = 0; i < this.moScriptHandlers.size(); ++i) {
assert (this.moScriptHandlers.get(i) != null);
ScriptHandler oHandler = this.moScriptHandlers.get(i);
if (oHandler != oScriptHandler) continue;
assert (oHandler.moDebugger == this);
oHandler.moDebugger = null;
this.moScriptHandlers.remove(i);
return;
}
assert (false);
}
}