link start!
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package org.mozilla.javascript.debug;
|
||||
|
||||
import org.mozilla.javascript.Context;
|
||||
import org.mozilla.javascript.Scriptable;
|
||||
|
||||
public interface DebugFrame {
|
||||
void onDebuggerStatement(Context context);
|
||||
|
||||
void onEnter(Context context, Scriptable scriptable, Scriptable scriptable2, Object[] objArr);
|
||||
|
||||
void onExceptionThrown(Context context, Throwable th);
|
||||
|
||||
void onExit(Context context, boolean z, Object obj);
|
||||
|
||||
void onLineChange(Context context, int i);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.mozilla.javascript.debug;
|
||||
|
||||
public interface DebuggableObject {
|
||||
Object[] getAllIds();
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.mozilla.javascript.debug;
|
||||
|
||||
public interface DebuggableScript {
|
||||
DebuggableScript getFunction(int i);
|
||||
|
||||
int getFunctionCount();
|
||||
|
||||
String getFunctionName();
|
||||
|
||||
int[] getLineNumbers();
|
||||
|
||||
int getParamAndVarCount();
|
||||
|
||||
int getParamCount();
|
||||
|
||||
String getParamOrVarName(int i);
|
||||
|
||||
DebuggableScript getParent();
|
||||
|
||||
String getSourceName();
|
||||
|
||||
boolean isFunction();
|
||||
|
||||
boolean isGeneratedScript();
|
||||
|
||||
boolean isTopLevel();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.mozilla.javascript.debug;
|
||||
|
||||
import org.mozilla.javascript.Context;
|
||||
|
||||
public interface Debugger {
|
||||
DebugFrame getFrame(Context context, DebuggableScript debuggableScript);
|
||||
|
||||
void handleCompilationDone(Context context, DebuggableScript debuggableScript, String str);
|
||||
}
|
||||
Reference in New Issue
Block a user