Package org.apache.batik.apps.svgbrowser
Class JSVGViewerFrame.Debugger
java.lang.Object
org.apache.batik.apps.svgbrowser.JSVGViewerFrame.Debugger
- Enclosing class:
JSVGViewerFrame
Rhino debugger class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static Class
The Rhino ContextFactory class.protected static Class
The Rhino debugger class.protected static Constructor
Rhino debugger class constructor.protected Object
The Rhino debugger instance.protected static Method[]
Rhino debugger class methods.protected static final int
protected static final int
protected static final int
protected static Method
ThegetContextFactory
method on theRhinoInterpreter
class.protected static final int
protected static boolean
Whether the Rhino debugger classes are present.protected static Class
The RhinoInterpreter class.protected static final int
protected JSVGViewerFrame
The JSVGViewerFrame. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attach()
Attaches the debugger to the canvas' current interpreter.void
CallsattachTo
ondebuggerInstance
.void
CallsclearAllBreakpoints
ondebuggerInstance
.void
detach()
Callsdetach
ondebuggerInstance
.void
dispose()
Callsdispose
ondebuggerInstance
.protected Object
getContextFactory
(Object rhinoInterpreter) CallsgetContextFactory
on the given instance ofRhinoInterpreter
.protected JFrame
CallsgetDebugFrame
ondebuggerInstance
.void
go()
Callsgo
ondebuggerInstance
.void
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
CallssetExitAction
ondebuggerInstance
.
-
Field Details
-
isPresent
protected static boolean isPresentWhether the Rhino debugger classes are present. -
debuggerClass
The Rhino debugger class. -
contextFactoryClass
The Rhino ContextFactory class. -
CLEAR_ALL_BREAKPOINTS_METHOD
protected static final int CLEAR_ALL_BREAKPOINTS_METHOD- See Also:
-
GO_METHOD
protected static final int GO_METHOD- See Also:
-
SET_EXIT_ACTION_METHOD
protected static final int SET_EXIT_ACTION_METHOD- See Also:
-
ATTACH_TO_METHOD
protected static final int ATTACH_TO_METHOD- See Also:
-
DETACH_METHOD
protected static final int DETACH_METHOD- See Also:
-
DISPOSE_METHOD
protected static final int DISPOSE_METHOD- See Also:
-
GET_DEBUG_FRAME_METHOD
protected static final int GET_DEBUG_FRAME_METHOD- See Also:
-
debuggerConstructor
Rhino debugger class constructor. -
debuggerMethods
Rhino debugger class methods. -
rhinoInterpreterClass
The RhinoInterpreter class. -
getContextFactoryMethod
ThegetContextFactory
method on theRhinoInterpreter
class. -
debuggerInstance
The Rhino debugger instance. -
svgFrame
The JSVGViewerFrame.
-
-
Constructor Details
-
Debugger
Creates a new Debugger.
-
-
Method Details
-
setDocumentURL
Sets the document URL to use in the window title. -
initialize
public void initialize()Initializes the debugger by massaging the GUI and attaching it to the Rhino interpreter's org.mozilla.javascript.ContextFactory. -
attach
public void attach()Attaches the debugger to the canvas' current interpreter. -
getDebugFrame
CallsgetDebugFrame
ondebuggerInstance
. -
setExitAction
CallssetExitAction
ondebuggerInstance
. -
attachTo
CallsattachTo
ondebuggerInstance
. -
detach
public void detach()Callsdetach
ondebuggerInstance
. -
go
public void go()Callsgo
ondebuggerInstance
. -
clearAllBreakpoints
public void clearAllBreakpoints()CallsclearAllBreakpoints
ondebuggerInstance
. -
dispose
public void dispose()Callsdispose
ondebuggerInstance
. -
getContextFactory
CallsgetContextFactory
on the given instance ofRhinoInterpreter
.
-