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

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.StandardMessage
All Implemented Interfaces:
Serializable
Enclosing interface:
LogSink

public static class LogSink.StandardMessage
extends LogSink.ValueMessage

A standard logging message, which may include a text message and name-value pairs.

See Also:
Serialized Form

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

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

LogSink.StandardMessage

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

LogSink.StandardMessage

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