public class JavaScratchPositionManager extends PositionManagerImpl
PositionManagerImpl.ClsSourcePosition, PositionManagerImpl.JavaSourcePosition
Constructor and Description |
---|
JavaScratchPositionManager(DebugProcessImpl debugProcess,
VirtualFile scratchFile) |
Modifier and Type | Method and Description |
---|---|
java.util.List<com.sun.jdi.request.ClassPrepareRequest> |
createPrepareRequests(ClassPrepareRequestor requestor,
SourcePosition position) |
java.util.List<com.sun.jdi.ReferenceType> |
getAllClasses(SourcePosition position)
Returns the list of all Java classes corresponding to the specified position in the source code.
|
protected PsiFile |
getPsiFileByLocation(Project project,
com.sun.jdi.Location location) |
SourcePosition |
getSourcePosition(com.sun.jdi.Location location)
Returns the source position corresponding to the specified bytecode location.
|
java.util.List<com.sun.jdi.Location> |
locationsOfLine(com.sun.jdi.ReferenceType type,
SourcePosition position)
Returns the list of bytecode locations in a specific class corresponding to the specified position in the source code.
|
createPrepareRequest, findClass, findMethod, getDebugProcess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAcceptedFileTypes
public JavaScratchPositionManager(DebugProcessImpl debugProcess, VirtualFile scratchFile)
public java.util.List<com.sun.jdi.Location> locationsOfLine(com.sun.jdi.ReferenceType type, SourcePosition position) throws NoDataException
PositionManager
locationsOfLine
in interface PositionManager
locationsOfLine
in class PositionManagerImpl
type
- a Java class (one of the list returned by PositionManager.getAllClasses(com.intellij.debugger.SourcePosition)
).position
- the position in the source code.NoDataException
- if the location is not in the code managed by this PositionManager
ReferenceType.locationsOfLine(int)
public java.util.List<com.sun.jdi.request.ClassPrepareRequest> createPrepareRequests(ClassPrepareRequestor requestor, SourcePosition position) throws NoDataException
createPrepareRequests
in interface MultiRequestPositionManager
createPrepareRequests
in class PositionManagerImpl
NoDataException
PositionManager.createPrepareRequest(com.intellij.debugger.requests.ClassPrepareRequestor, com.intellij.debugger.SourcePosition)
public java.util.List<com.sun.jdi.ReferenceType> getAllClasses(SourcePosition position) throws NoDataException
PositionManager
getAllClasses
in interface PositionManager
getAllClasses
in class PositionManagerImpl
position
- the source position.NoDataException
- if the location is not in the code managed by this PositionManager
VirtualMachineProxy.classesByName(java.lang.String)
public SourcePosition getSourcePosition(com.sun.jdi.Location location) throws NoDataException
PositionManager
getSourcePosition
in interface PositionManager
getSourcePosition
in class PositionManagerImpl
location
- the bytecode location.NoDataException
- if the location is not in the code managed by this PositionManager
protected PsiFile getPsiFileByLocation(Project project, com.sun.jdi.Location location)
getPsiFileByLocation
in class PositionManagerImpl