public class CompoundPositionManager extends PositionManagerEx implements MultiRequestPositionManager
Modifier and Type | Field and Description |
---|---|
static CompoundPositionManager |
EMPTY |
Constructor and Description |
---|
CompoundPositionManager() |
CompoundPositionManager(PositionManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
appendPositionManager(PositionManager manager) |
void |
clearCache() |
com.sun.jdi.request.ClassPrepareRequest |
createPrepareRequest(ClassPrepareRequestor requestor,
SourcePosition position)
Called to request the JVM to notify the debugger engine when a class corresponding to a breakpoint location is loaded.
|
java.util.List<com.sun.jdi.request.ClassPrepareRequest> |
createPrepareRequests(ClassPrepareRequestor requestor,
SourcePosition position) |
XStackFrame |
createStackFrame(StackFrameDescriptorImpl descriptor) |
ThreeState |
evaluateCondition(EvaluationContext context,
StackFrameProxyImpl frame,
com.sun.jdi.Location location,
java.lang.String expression) |
java.util.List<com.sun.jdi.ReferenceType> |
getAllClasses(SourcePosition classPosition)
Returns the list of all Java classes corresponding to the specified position in the source code.
|
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.
|
createStackFrame
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAcceptedFileTypes
public static final CompoundPositionManager EMPTY
public CompoundPositionManager()
public CompoundPositionManager(PositionManager manager)
public void appendPositionManager(PositionManager manager)
public void clearCache()
public SourcePosition getSourcePosition(com.sun.jdi.Location location)
PositionManager
getSourcePosition
in interface PositionManager
location
- the bytecode location.public java.util.List<com.sun.jdi.ReferenceType> getAllClasses(SourcePosition classPosition)
PositionManager
getAllClasses
in interface PositionManager
classPosition
- the source position.VirtualMachineProxy.classesByName(java.lang.String)
public java.util.List<com.sun.jdi.Location> locationsOfLine(com.sun.jdi.ReferenceType type, SourcePosition position)
PositionManager
locationsOfLine
in interface PositionManager
type
- a Java class (one of the list returned by PositionManager.getAllClasses(com.intellij.debugger.SourcePosition)
).position
- the position in the source code.ReferenceType.locationsOfLine(int)
public com.sun.jdi.request.ClassPrepareRequest createPrepareRequest(ClassPrepareRequestor requestor, SourcePosition position)
PositionManager
RequestManager.createClassPrepareRequest(com.intellij.debugger.requests.ClassPrepareRequestor, java.lang.String)
to create the request.createPrepareRequest
in interface PositionManager
requestor
- the object to receive the notification from the JVM.position
- the location of a breakpoint.PositionManager
but no class prepare notification is neededpublic java.util.List<com.sun.jdi.request.ClassPrepareRequest> createPrepareRequests(ClassPrepareRequestor requestor, SourcePosition position)
public XStackFrame createStackFrame(StackFrameDescriptorImpl descriptor)
createStackFrame
in class PositionManagerEx
public ThreeState evaluateCondition(EvaluationContext context, StackFrameProxyImpl frame, com.sun.jdi.Location location, java.lang.String expression)
evaluateCondition
in class PositionManagerEx