edu.rice.cs.plt.debug
Class LogSink.StackMessage

java.lang.Object
  extended by edu.rice.cs.plt.debug.LogSink.Message
      extended by edu.rice.cs.plt.debug.LogSink.StackMessage
All Implemented Interfaces:
Serializable
Enclosing interface:
LogSink

public static class LogSink.StackMessage
extends LogSink.Message

A message logging the thread's current stack trace. While all Messages have ThreadSnapshots and accompanying stack traces, StackMessages explicitly request that the stack be recorded.

See Also:
Serialized Form

Constructor Summary
LogSink.StackMessage(LogSink.StackMessage copy)
           
LogSink.StackMessage(ThreadSnapshot thread)
           
LogSink.StackMessage(ThreadSnapshot thread, String text)
           
 
Method Summary
<T> T
apply(LogSink.MessageVisitor<? extends T> visitor)
           
 void send(LogSink sink)
           
 LogSink.StackMessage serializable()
          Convert the message to a form that is guaranteed to be serializable (e.g., invokes toString() on objects of arbitrary type).
 
Methods inherited from class edu.rice.cs.plt.debug.LogSink.Message
caller, stack, text, thread, time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogSink.StackMessage

public LogSink.StackMessage(ThreadSnapshot thread)

LogSink.StackMessage

public LogSink.StackMessage(ThreadSnapshot thread,
                            String text)

LogSink.StackMessage

public LogSink.StackMessage(LogSink.StackMessage copy)
Method Detail

send

public void send(LogSink sink)
Specified by:
send in class LogSink.Message

apply

public <T> T apply(LogSink.MessageVisitor<? extends T> visitor)
Specified by:
apply in class LogSink.Message

serializable

public LogSink.StackMessage serializable()
Description copied from class: LogSink.Message
Convert the message to a form that is guaranteed to be serializable (e.g., invokes toString() on objects of arbitrary type).

Specified by:
serializable in class LogSink.Message