orc.trace.values
Class ConstantValue

java.lang.Object
  extended by orc.trace.values.AbstractValue
      extended by orc.trace.values.ConstantValue
All Implemented Interfaces:
java.io.Serializable, Term, Value

public class ConstantValue
extends AbstractValue

Constant (not just immutable, but atomic) value, such as a String, Number, Boolean, Character, or null.

Author:
quark
See Also:
Serialized Form

Field Summary
 java.io.Serializable constant
           
 
Constructor Summary
ConstantValue(java.io.Serializable constant)
           
 
Method Summary
 boolean equals(java.lang.Object that)
           
 int hashCode()
           
 void prettyPrint(java.io.Writer out, int indent)
          Pretty-print the term to out.
 
Methods inherited from class orc.trace.values.AbstractValue
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

constant

public final java.io.Serializable constant
Constructor Detail

ConstantValue

public ConstantValue(java.io.Serializable constant)
Method Detail

prettyPrint

public void prettyPrint(java.io.Writer out,
                        int indent)
                 throws java.io.IOException
Description copied from interface: Term
Pretty-print the term to out. If the term is multiple lines, each newline should be followed by at least indent tabs. The value should not begin or end with a newline.

Throws:
java.io.IOException
See Also:
Terms.indent(Writer, int)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object