Package org.apache.batik.apps.svgbrowser
Class JSVGViewerFrame.Debugger
- java.lang.Object
-
- org.apache.batik.apps.svgbrowser.JSVGViewerFrame.Debugger
-
- Enclosing class:
- JSVGViewerFrame
protected static class JSVGViewerFrame.Debugger extends java.lang.ObjectRhino debugger class.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intATTACH_TO_METHODprotected static intCLEAR_ALL_BREAKPOINTS_METHODprotected static java.lang.ClasscontextFactoryClassThe Rhino ContextFactory class.protected static java.lang.ClassdebuggerClassThe Rhino debugger class.protected static java.lang.reflect.ConstructordebuggerConstructorRhino debugger class constructor.protected java.lang.ObjectdebuggerInstanceThe Rhino debugger instance.protected static java.lang.reflect.Method[]debuggerMethodsRhino debugger class methods.protected static intDETACH_METHODprotected static intDISPOSE_METHODprotected static intGET_DEBUG_FRAME_METHODprotected static java.lang.reflect.MethodgetContextFactoryMethodThegetContextFactorymethod on theRhinoInterpreterclass.protected static intGO_METHODprotected static booleanisPresentWhether the Rhino debugger classes are present.protected static java.lang.ClassrhinoInterpreterClassThe RhinoInterpreter class.protected static intSET_EXIT_ACTION_METHODprotected JSVGViewerFramesvgFrameThe JSVGViewerFrame.
-
Constructor Summary
Constructors Constructor Description Debugger(JSVGViewerFrame frame, java.lang.String url)Creates a new Debugger.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach()Attaches the debugger to the canvas' current interpreter.voidattachTo(java.lang.Object contextFactory)CallsattachToondebuggerInstance.voidclearAllBreakpoints()CallsclearAllBreakpointsondebuggerInstance.voiddetach()CallsdetachondebuggerInstance.voiddispose()CallsdisposeondebuggerInstance.protected java.lang.ObjectgetContextFactory(java.lang.Object rhinoInterpreter)CallsgetContextFactoryon the given instance ofRhinoInterpreter.protected javax.swing.JFramegetDebugFrame()CallsgetDebugFrameondebuggerInstance.voidgo()CallsgoondebuggerInstance.voidinitialize()Initializes the debugger by massaging the GUI and attaching it to the Rhino interpreter's org.mozilla.javascript.ContextFactory.voidsetDocumentURL(java.lang.String url)Sets the document URL to use in the window title.protected voidsetExitAction(java.lang.Runnable r)CallssetExitActionondebuggerInstance.
-
-
-
Field Detail
-
isPresent
protected static boolean isPresent
Whether the Rhino debugger classes are present.
-
debuggerClass
protected static java.lang.Class debuggerClass
The Rhino debugger class.
-
contextFactoryClass
protected static java.lang.Class contextFactoryClass
The Rhino ContextFactory class.
-
CLEAR_ALL_BREAKPOINTS_METHOD
protected static final int CLEAR_ALL_BREAKPOINTS_METHOD
- See Also:
- Constant Field Values
-
GO_METHOD
protected static final int GO_METHOD
- See Also:
- Constant Field Values
-
SET_EXIT_ACTION_METHOD
protected static final int SET_EXIT_ACTION_METHOD
- See Also:
- Constant Field Values
-
ATTACH_TO_METHOD
protected static final int ATTACH_TO_METHOD
- See Also:
- Constant Field Values
-
DETACH_METHOD
protected static final int DETACH_METHOD
- See Also:
- Constant Field Values
-
DISPOSE_METHOD
protected static final int DISPOSE_METHOD
- See Also:
- Constant Field Values
-
GET_DEBUG_FRAME_METHOD
protected static final int GET_DEBUG_FRAME_METHOD
- See Also:
- Constant Field Values
-
debuggerConstructor
protected static java.lang.reflect.Constructor debuggerConstructor
Rhino debugger class constructor.
-
debuggerMethods
protected static java.lang.reflect.Method[] debuggerMethods
Rhino debugger class methods.
-
rhinoInterpreterClass
protected static java.lang.Class rhinoInterpreterClass
The RhinoInterpreter class.
-
getContextFactoryMethod
protected static java.lang.reflect.Method getContextFactoryMethod
ThegetContextFactorymethod on theRhinoInterpreterclass.
-
debuggerInstance
protected java.lang.Object debuggerInstance
The Rhino debugger instance.
-
svgFrame
protected JSVGViewerFrame svgFrame
The JSVGViewerFrame.
-
-
Constructor Detail
-
Debugger
public Debugger(JSVGViewerFrame frame, java.lang.String url)
Creates a new Debugger.
-
-
Method Detail
-
setDocumentURL
public void setDocumentURL(java.lang.String url)
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
protected javax.swing.JFrame getDebugFrame()
CallsgetDebugFrameondebuggerInstance.
-
setExitAction
protected void setExitAction(java.lang.Runnable r)
CallssetExitActionondebuggerInstance.
-
attachTo
public void attachTo(java.lang.Object contextFactory)
CallsattachToondebuggerInstance.
-
detach
public void detach()
CallsdetachondebuggerInstance.
-
go
public void go()
CallsgoondebuggerInstance.
-
clearAllBreakpoints
public void clearAllBreakpoints()
CallsclearAllBreakpointsondebuggerInstance.
-
dispose
public void dispose()
CallsdisposeondebuggerInstance.
-
getContextFactory
protected java.lang.Object getContextFactory(java.lang.Object rhinoInterpreter)
CallsgetContextFactoryon the given instance ofRhinoInterpreter.
-
-