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

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

public static class LogSink.EndMessage
extends LogSink.ValueMessage

A message signifying the end of a block of code. Should match a previous StartMessage in the same thread.

See Also:
Serialized Form

Constructor Summary
protected LogSink.EndMessage(LogSink.EndMessage copy)
           
  LogSink.EndMessage(ThreadSnapshot thread, String[] names, Object[] vals)
           
  LogSink.EndMessage(ThreadSnapshot thread, String message, String[] names, Object[] vals)
           
 
Method Summary
<T> T
apply(LogSink.MessageVisitor<? extends T> visitor)
           
 void send(LogSink sink)
           
 LogSink.EndMessage 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.ValueMessage
values
 
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.EndMessage

public LogSink.EndMessage(ThreadSnapshot thread,
                          String[] names,
                          Object[] vals)

LogSink.EndMessage

public LogSink.EndMessage(ThreadSnapshot thread,
                          String message,
                          String[] names,
                          Object[] vals)

LogSink.EndMessage

protected LogSink.EndMessage(LogSink.EndMessage 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.EndMessage 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