|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mozilla.javascript.tools.debugger.Main
public class Main
Rhino script debugger main class. This class links together a
debugger object (Dim) and a debugger GUI object (SwingGui).
| Constructor Summary | |
|---|---|
Main(java.lang.String title)
Creates a new Main. |
|
| Method Summary | |
|---|---|
void |
attachTo(net.sourceforge.htmlunit.corejs.javascript.ContextFactory factory)
Attaches the debugger to the given ContextFactory. |
void |
clearAllBreakpoints()
Removes all breakpoints. |
void |
contextCreated(net.sourceforge.htmlunit.corejs.javascript.Context cx)
Deprecated. The method is only present for compatibility and should not be called. |
void |
contextEntered(net.sourceforge.htmlunit.corejs.javascript.Context cx)
Deprecated. The method is only present for compatibility and should not be called. |
void |
contextExited(net.sourceforge.htmlunit.corejs.javascript.Context cx)
Deprecated. The method is only present for compatibility and should not be called. |
void |
contextReleased(net.sourceforge.htmlunit.corejs.javascript.Context cx)
Deprecated. The method is only present for compatibility and should not be called. |
void |
detach()
Detaches from the current ContextFactory. |
void |
dispose()
Frees any resources held by the debugger. |
void |
doBreak()
Breaks execution of the script. |
javax.swing.JFrame |
getDebugFrame()
Returns the debugger window JFrame. |
java.io.PrintStream |
getErr()
Returns a PrintStream for stderr in the Debugger's internal
Console window. |
java.io.InputStream |
getIn()
Returns an InputStream for stdin from the debugger's internal
Console window. |
java.io.PrintStream |
getOut()
Returns a PrintStream for stdout to the debugger's internal
Console window. |
void |
go()
Resumes execution of the script. |
boolean |
isVisible()
Returns whether the debugger GUI frame is visible. |
static void |
main(java.lang.String[] args)
Main entry point. |
static Dim |
mainEmbedded(net.sourceforge.htmlunit.corejs.javascript.ContextFactory factory,
ScopeProvider scopeProvider,
java.lang.String title)
Entry point for embedded applications. |
static Dim |
mainEmbedded(net.sourceforge.htmlunit.corejs.javascript.ContextFactory factory,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
java.lang.String title)
Entry point for embedded applications. |
static Dim |
mainEmbedded(java.lang.String title)
Entry point for embedded applications. |
void |
pack()
Packs the debugger GUI frame. |
void |
setBreakOnEnter(boolean value)
Sets whether execution should break when a function is entered. |
void |
setBreakOnExceptions(boolean value)
Sets whether execution should break when a script exception is thrown. |
void |
setBreakOnReturn(boolean value)
Sets whether execution should break when a function is left. |
void |
setExitAction(java.lang.Runnable r)
Assign a Runnable object that will be invoked when the user selects "Exit..." or closes the Debugger main window. |
void |
setOptimizationLevel(int level)
Deprecated. The method does nothing and is only present for compatibility. |
void |
setScope(net.sourceforge.htmlunit.corejs.javascript.Scriptable scope)
Sets the scope to be used for script evaluation. |
void |
setScopeProvider(ScopeProvider p)
Sets the ScopeProvider that provides a scope to be used
for script evaluation. |
void |
setSize(java.awt.Dimension dimension)
Deprecated. Use setSize(int, int) instead. |
void |
setSize(int w,
int h)
Sets the debugger GUI frame dimensions. |
void |
setVisible(boolean flag)
Sets the visibility of the debugger GUI frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main(java.lang.String title)
| Method Detail |
|---|
public javax.swing.JFrame getDebugFrame()
JFrame.
public void doBreak()
public void setBreakOnExceptions(boolean value)
public void setBreakOnEnter(boolean value)
public void setBreakOnReturn(boolean value)
public void clearAllBreakpoints()
public void go()
public void setScope(net.sourceforge.htmlunit.corejs.javascript.Scriptable scope)
public void setScopeProvider(ScopeProvider p)
ScopeProvider that provides a scope to be used
for script evaluation.
public void setExitAction(java.lang.Runnable r)
public java.io.InputStream getIn()
InputStream for stdin from the debugger's internal
Console window.
public java.io.PrintStream getOut()
PrintStream for stdout to the debugger's internal
Console window.
public java.io.PrintStream getErr()
PrintStream for stderr in the Debugger's internal
Console window.
public void pack()
public void setSize(int w,
int h)
public void setVisible(boolean flag)
public boolean isVisible()
public void dispose()
public void attachTo(net.sourceforge.htmlunit.corejs.javascript.ContextFactory factory)
ContextFactory.
public void detach()
ContextFactory.
public static void main(java.lang.String[] args)
Main shell session.
public static Dim mainEmbedded(java.lang.String title)
ContextFactory with a scope of a newly
created Global object. No I/O redirection is performed
as with main(String[]).
public static Dim mainEmbedded(net.sourceforge.htmlunit.corejs.javascript.ContextFactory factory,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
java.lang.String title)
ContextFactory with the given scope. No
I/O redirection is performed as with main(String[]).
public static Dim mainEmbedded(net.sourceforge.htmlunit.corejs.javascript.ContextFactory factory,
ScopeProvider scopeProvider,
java.lang.String title)
ContextFactory with the given scope. No
I/O redirection is performed as with main(String[]).
public void setSize(java.awt.Dimension dimension)
setSize(int, int) instead.
public void setOptimizationLevel(int level)
public void contextEntered(net.sourceforge.htmlunit.corejs.javascript.Context cx)
public void contextExited(net.sourceforge.htmlunit.corejs.javascript.Context cx)
public void contextCreated(net.sourceforge.htmlunit.corejs.javascript.Context cx)
public void contextReleased(net.sourceforge.htmlunit.corejs.javascript.Context cx)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||