JavaDebugDriver Class

com.bea.ide.lang.java.driver
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

Constructor Summary

JavaDebugDriver(ISourceDocument file)

 

Method Summary

public boolean
addBreakPoint(ISourceBreakPoint bp)
Sets a break point on the given line in the given file.
public ISourceBreakPoint
createBreakPoint(IDocument file, int line)
This creates a breakpoint with the given URI + line number.
public ISourceBreakPoint[]
createMethodBreakPoint(IDocument file, String className, String methodName, String[] params)
This creates a breakpoint with the given IDocument + class + method names.
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.
 
Methods from  com.bea.ide.sourceeditor.driver.DefaultDebugDriver
createBreakPoint, getBreakPoint, getBreakPoint, getSourceModel, hasInstructionPoint, removeBreakPoint, setInstructionPoint, unsetInstructionPoint
 
Methods from  com.bea.ide.sourceeditor.driver.DefaultDocumentDriver
getDocument, setDocument
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.ide.debug.IDebugDriver
addBreakPoint, createBreakPoint, createBreakPoint, createMethodBreakPoint, getBreakPoint, getBreakPoint, hasInstructionPoint, removeBreakPoint, setInstructionPoint, unsetInstructionPoint
 

Constructor Detail

JavaDebugDriver

public JavaDebugDriver(ISourceDocument file)
 

Method Detail

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.