protected static class JSVGViewerFrame.Debugger extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
ATTACH_TO_METHOD |
protected static int |
CLEAR_ALL_BREAKPOINTS_METHOD |
protected static Class |
contextFactoryClass
The Rhino ContextFactory class.
|
protected static Class |
debuggerClass
The Rhino debugger class.
|
protected static Constructor |
debuggerConstructor
Rhino debugger class constructor.
|
protected Object |
debuggerInstance
The Rhino debugger instance.
|
protected static Method[] |
debuggerMethods
Rhino debugger class methods.
|
protected static int |
DETACH_METHOD |
protected static int |
DISPOSE_METHOD |
protected static int |
GET_DEBUG_FRAME_METHOD |
protected static Method |
getContextFactoryMethod
The
getContextFactory method on the RhinoInterpreter class. |
protected static int |
GO_METHOD |
protected static boolean |
isPresent
Whether the Rhino debugger classes are present.
|
protected static Class |
rhinoInterpreterClass
The RhinoInterpreter class.
|
protected static int |
SET_EXIT_ACTION_METHOD |
protected JSVGViewerFrame |
svgFrame
The JSVGViewerFrame.
|
Constructor and Description |
---|
Debugger(JSVGViewerFrame frame,
String url)
Creates a new Debugger.
|
Modifier and Type | Method and Description |
---|---|
void |
attach()
Attaches the debugger to the canvas' current interpreter.
|
void |
attachTo(Object contextFactory)
Calls
attachTo on debuggerInstance . |
void |
clearAllBreakpoints()
Calls
clearAllBreakpoints on debuggerInstance . |
void |
detach()
Calls
detach on debuggerInstance . |
void |
dispose()
Calls
dispose on debuggerInstance . |
protected Object |
getContextFactory(Object rhinoInterpreter)
Calls
getContextFactory on the given instance of
RhinoInterpreter . |
protected JFrame |
getDebugFrame()
Calls
getDebugFrame on debuggerInstance . |
void |
go()
Calls
go on debuggerInstance . |
void |
initialize()
Initializes the debugger by massaging the GUI and attaching it
to the Rhino interpreter's
org.mozilla.javascript.ContextFactory.
|
void |
setDocumentURL(String url)
Sets the document URL to use in the window title.
|
protected void |
setExitAction(Runnable r)
Calls
setExitAction on debuggerInstance . |
protected static boolean isPresent
protected static Class debuggerClass
protected static Class contextFactoryClass
protected static final int CLEAR_ALL_BREAKPOINTS_METHOD
protected static final int GO_METHOD
protected static final int SET_EXIT_ACTION_METHOD
protected static final int ATTACH_TO_METHOD
protected static final int DETACH_METHOD
protected static final int DISPOSE_METHOD
protected static final int GET_DEBUG_FRAME_METHOD
protected static Constructor debuggerConstructor
protected static Method[] debuggerMethods
protected static Class rhinoInterpreterClass
protected static Method getContextFactoryMethod
getContextFactory
method on the RhinoInterpreter
class.protected Object debuggerInstance
protected JSVGViewerFrame svgFrame
public Debugger(JSVGViewerFrame frame, String url)
public void setDocumentURL(String url)
public void initialize()
public void attach()
protected JFrame getDebugFrame()
getDebugFrame
on debuggerInstance
.protected void setExitAction(Runnable r)
setExitAction
on debuggerInstance
.public void attachTo(Object contextFactory)
attachTo
on debuggerInstance
.public void detach()
detach
on debuggerInstance
.public void go()
go
on debuggerInstance
.public void clearAllBreakpoints()
clearAllBreakpoints
on debuggerInstance
.public void dispose()
dispose
on debuggerInstance
.protected Object getContextFactory(Object rhinoInterpreter)
getContextFactory
on the given instance of
RhinoInterpreter
.Copyright © 2000–2023 Apache Software Foundation. All rights reserved.