class Printer extends java.lang.Object implements IndentPrinter, JDIEventHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
atNewLine |
private InsideIgnoredMethodMap |
boolMap |
private CodeMap |
codeMap |
private java.util.Map<com.sun.jdi.ThreadReference,com.sun.jdi.Value> |
exceptionsMap |
private static java.io.PrintStream |
out |
private java.util.Map<com.sun.jdi.ThreadReference,com.sun.jdi.Value> |
returnValues |
private java.util.Set<com.sun.jdi.ReferenceType> |
staticClasses |
private ValueMap |
values |
Constructor and Description |
---|
Printer() |
Modifier and Type | Method and Description |
---|---|
void |
classPrepareEvent(com.sun.jdi.event.ClassPrepareEvent event)
Notification of a class prepare in the target VM.
|
void |
classUnloadEvent(com.sun.jdi.event.ClassUnloadEvent event)
Notification of a class unload in the target VM.
|
private void |
drawGraph(java.lang.String loc,
com.sun.jdi.ThreadReference thr,
com.sun.jdi.Method meth) |
void |
exceptionEvent(com.sun.jdi.event.ExceptionEvent event)
Notification of an exception in the target VM.
|
void |
methodEntryEvent(com.sun.jdi.event.MethodEntryEvent event)
Notification of a method invocation in the target VM.
|
void |
methodExitEvent(com.sun.jdi.event.MethodExitEvent event)
Notification of a method return in the target VM.
|
void |
modificationWatchpointEvent(com.sun.jdi.event.ModificationWatchpointEvent event)
Notification of a field modification in the target VM.
|
void |
monitorContendedEnteredEvent(com.sun.jdi.event.MonitorContendedEnteredEvent event)
Notification that a thread in the target VM is entering a monitor after
waiting for it to be released by another thread.
|
void |
monitorContendedEnterEvent(com.sun.jdi.event.MonitorContendedEnterEvent event)
Notification that a thread in the target VM is attempting to enter a
monitor that is already acquired by another thread.
|
void |
monitorWaitedEvent(com.sun.jdi.event.MonitorWaitedEvent event)
Notification that a thread in the target VM has finished waiting on an
monitor object.
|
void |
monitorWaitEvent(com.sun.jdi.event.MonitorWaitEvent event)
Notification that a thread in the target VM is about to wait on a monitor
object.
|
void |
printCallTree() |
void |
printDrawEvent(com.sun.jdi.ThreadReference thr,
java.lang.String filename) |
void |
printLineNum(com.sun.jdi.ThreadReference thr,
int lineNumber) |
private void |
printLinePrefix(com.sun.jdi.ThreadReference thr,
boolean showLinePrompt) |
void |
println(java.lang.String string) |
void |
println(com.sun.jdi.ThreadReference thr,
java.lang.String string) |
private void |
printLocals(com.sun.jdi.StackFrame currFrame,
com.sun.jdi.ThreadReference thr) |
static void |
setFilename() |
static void |
setFilename(java.lang.String s) |
void |
stepEvent(com.sun.jdi.event.StepEvent event)
Notification of step completion in the target VM.
|
void |
threadDeathEvent(com.sun.jdi.event.ThreadDeathEvent event)
Notification of a completed thread in the target VM.
|
void |
threadStartEvent(com.sun.jdi.event.ThreadStartEvent event)
Notification of a new running thread in the target VM.
|
void |
vmDeathEvent(com.sun.jdi.event.VMDeathEvent event)
Notification of target VM termination.
|
void |
vmDisconnectEvent(com.sun.jdi.event.VMDisconnectEvent event)
Notification of disconnection from target VM.
|
void |
vmStartEvent(com.sun.jdi.event.VMStartEvent event)
Notification of initialization of a target VM.
|
private final java.util.Set<com.sun.jdi.ReferenceType> staticClasses
private final java.util.Map<com.sun.jdi.ThreadReference,com.sun.jdi.Value> returnValues
private final java.util.Map<com.sun.jdi.ThreadReference,com.sun.jdi.Value> exceptionsMap
private final InsideIgnoredMethodMap boolMap
private boolean atNewLine
private static java.io.PrintStream out
Printer()
public void monitorContendedEnterEvent(com.sun.jdi.event.MonitorContendedEnterEvent event)
JDIEventHandler
monitorContendedEnterEvent
in interface JDIEventHandler
public void monitorContendedEnteredEvent(com.sun.jdi.event.MonitorContendedEnteredEvent event)
JDIEventHandler
monitorContendedEnteredEvent
in interface JDIEventHandler
public void monitorWaitEvent(com.sun.jdi.event.MonitorWaitEvent event)
JDIEventHandler
monitorWaitEvent
in interface JDIEventHandler
public void monitorWaitedEvent(com.sun.jdi.event.MonitorWaitedEvent event)
JDIEventHandler
monitorWaitedEvent
in interface JDIEventHandler
public void vmStartEvent(com.sun.jdi.event.VMStartEvent event)
JDIEventHandler
vmStartEvent
in interface JDIEventHandler
public void vmDeathEvent(com.sun.jdi.event.VMDeathEvent event)
JDIEventHandler
vmDeathEvent
in interface JDIEventHandler
public void vmDisconnectEvent(com.sun.jdi.event.VMDisconnectEvent event)
JDIEventHandler
vmDisconnectEvent
in interface JDIEventHandler
public void threadStartEvent(com.sun.jdi.event.ThreadStartEvent event)
JDIEventHandler
threadStartEvent
in interface JDIEventHandler
public void threadDeathEvent(com.sun.jdi.event.ThreadDeathEvent event)
JDIEventHandler
threadDeathEvent
in interface JDIEventHandler
public void classPrepareEvent(com.sun.jdi.event.ClassPrepareEvent event)
JDIEventHandler
classPrepareEvent
in interface JDIEventHandler
public void classUnloadEvent(com.sun.jdi.event.ClassUnloadEvent event)
JDIEventHandler
classUnloadEvent
in interface JDIEventHandler
public void methodEntryEvent(com.sun.jdi.event.MethodEntryEvent event)
JDIEventHandler
methodEntryEvent
in interface JDIEventHandler
public void methodExitEvent(com.sun.jdi.event.MethodExitEvent event)
JDIEventHandler
methodExitEvent
in interface JDIEventHandler
public void exceptionEvent(com.sun.jdi.event.ExceptionEvent event)
JDIEventHandler
exceptionEvent
in interface JDIEventHandler
public void stepEvent(com.sun.jdi.event.StepEvent event)
JDIEventHandler
stepEvent
in interface JDIEventHandler
public void modificationWatchpointEvent(com.sun.jdi.event.ModificationWatchpointEvent event)
JDIEventHandler
modificationWatchpointEvent
in interface JDIEventHandler
public void printCallTree()
printCallTree
in interface JDIEventHandler
private void drawGraph(java.lang.String loc, com.sun.jdi.ThreadReference thr, com.sun.jdi.Method meth)
private void printLocals(com.sun.jdi.StackFrame currFrame, com.sun.jdi.ThreadReference thr)
public static void setFilename(java.lang.String s)
public static void setFilename()
public void println(java.lang.String string)
public void println(com.sun.jdi.ThreadReference thr, java.lang.String string)
println
in interface IndentPrinter
private void printLinePrefix(com.sun.jdi.ThreadReference thr, boolean showLinePrompt)
public void printLineNum(com.sun.jdi.ThreadReference thr, int lineNumber)
public void printDrawEvent(com.sun.jdi.ThreadReference thr, java.lang.String filename)