JavaDebugDriver Class
- public class JavaDebugDriver
extends DefaultDebugDriver
Document types utilizing the JavaDebugDriver will automatically make use of
JavaBreakpoint objects, a specialized java-specific version of SourceBreakPoint.
It supports both line and method breakpoints.
-
Hierarchy
-
Object
DefaultDocumentDriver
DefaultDebugDriver
JavaDebugDriver
-
All Implemented Interfaces
-
IDebugDriver
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaDebugDriver
public JavaDebugDriver(ISourceDocument
file)
addBreakPoint(ISourceBreakPoint) Method
public boolean addBreakPoint(ISourceBreakPoint
bp)
Description copied from IDebugDriver.addBreakPoint(ISourceBreakPoint)
Sets a break point on the given line in the given file.
-
Overrides
-
DefaultDebugDriver.addBreakPoint(ISourceBreakPoint)
Parameters
-
bp
- the breakpoint created by a call to one of the create breakpoint calls in this
driver.
Returns
- true if adding the breakpoint succeeded, false if not. Will fail
if there is the requested line number is past the end of the document.
createBreakPoint(IDocument, int) Method
public ISourceBreakPoint
createBreakPoint(IDocument
file,
int line)
Description copied from IDebugDriver.createBreakPoint(IDocument, int)
This creates a breakpoint with the given URI + line number. This will
not actually be associated with a line in a document, until addBreakPoint is called.
-
Overrides
-
DefaultDebugDriver.createBreakPoint(IDocument, int)
Parameters
-
file
- the file the breakpoint will be created in.
-
line
- the line the breakpoint will be created on.
Returns
- a
IDebugBreakPoint
representing the breakpoint that was created.
createMethodBreakPoint(IDocument, String, String, String[]) Method
public ISourceBreakPoint
[] createMethodBreakPoint(IDocument
file,
String
className,
String
methodName,
String
[] params)
This creates a breakpoint with the given IDocument + class + method names. This will
not actually be associated with a line in a document, until addBreakPoint is called.
If more than one breakpoint can correspond to the parameters passed in, all will be returned.
-
Overrides
-
DefaultDebugDriver.createMethodBreakPoint(IDocument, String, String, String[])
Parameters
-
file
- the file the breakpoint is to be created in.
-
className
- the class name to resolve the method in.
-
methodName
- the name of the method to create a breakpoint for.
-
params
- the list of parameters for the method to create a breakpoint for. If this
is
null
, a breakpoint will be created for all methods that match for any set of parameters.
Returns
- an array of
ISourceBreakPoint
that relresent all the breakpoints created.
createMethodBreakpointEx(IDocument, String, String, String[]) Method
protected ISourceBreakPoint
createMethodBreakpointEx(IDocument
file,
String
className,
String
methodName,
String
[] params)
Used if we are unable to resolve the method in the source file and therefore can't
attach it to an element in the source editor. Arguments and return are the same
as createMethodBreakpoint
.