orc.trace.values
Class Marshaller

java.lang.Object
  extended by orc.trace.values.Marshaller

public class Marshaller
extends java.lang.Object


Constructor Summary
Marshaller()
           
 
Method Summary
 Value marshal(java.lang.Object value)
          Marshal a runtime value into an immutable, serializable representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Marshaller

public Marshaller()
Method Detail

marshal

public Value marshal(java.lang.Object value)
Marshal a runtime value into an immutable, serializable representation. To avoid wasting a lot of space and time by copying the same values repeatedly, the marshalled representations are cached in a weak hash map.

Note that marshalling loses object identity, since equal (but different) objects share the same representation, and the same object (at different times) may use different representations.