org.apache.batik.apps.svgbrowser
protected static class JSVGViewerFrame.Debugger extends Object
Field Summary | |
---|---|
protected static int | ATTACH_TO_METHOD |
protected static Class | contextFactoryClass
The Rhino ContextFactory class. |
protected static int | CLEAR_ALL_BREAKPOINTS_METHOD |
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 Method | getContextFactoryMethod
The {@code getContextFactory} method on the RhinoInterpreter class. |
protected static int | GET_DEBUG_FRAME_METHOD |
protected static int | GO_METHOD |
protected static boolean | isPresent
Whether the Rhino debugger classes are present. |
protected static Class | rhinoInterpreterClass
The RhinoInterpreter class. |
protected JSVGViewerFrame | svgFrame
The JSVGViewerFrame. |
protected static int | SET_EXIT_ACTION_METHOD |
Constructor Summary | |
---|---|
Debugger(JSVGViewerFrame frame, String url)
Creates a new Debugger. |
Method Summary | |
---|---|
void | attach()
Attaches the debugger to the canvas' current interpreter. |
void | attachTo(Object contextFactory)
Calls {@code attachTo} on debuggerInstance. |
void | clearAllBreakpoints()
Calls {@code clearAllBreakpoints} on debuggerInstance. |
void | detach()
Calls {@code detach} on debuggerInstance. |
void | dispose()
Calls {@code dispose} on debuggerInstance. |
protected Object | getContextFactory(Object rhinoInterpreter)
Calls {@code getContextFactory} on the given instance of
RhinoInterpreter. |
protected JFrame | getDebugFrame()
Calls {@code getDebugFrame} on debuggerInstance. |
void | go()
Calls {@code 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 {@code setExitAction} on debuggerInstance. |