orc.runtime.values
Class Field

java.lang.Object
  extended by orc.runtime.values.Value
      extended by orc.runtime.values.Field
All Implemented Interfaces:
java.io.Serializable, Eq

public class Field
extends Value
implements java.io.Serializable, Eq

Distinguished representation for field names.

Author:
quark
See Also:
Serialized Form

Field Summary
 
Fields inherited from class orc.runtime.values.Value
futureNotReady
 
Constructor Summary
Field(java.lang.String key)
           
 
Method Summary
<E> E
accept(Visitor<E> visitor)
           
 boolean eqTo(java.lang.Object that)
          Return true if this is equivalent to that.
 boolean equals(java.lang.Object that)
           
 java.lang.String getKey()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class orc.runtime.values.Value
forceArg, forceCall, signal, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(java.lang.String key)
Method Detail

getKey

public java.lang.String getKey()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

accept

public <E> E accept(Visitor<E> visitor)
Overrides:
accept in class Value

equals

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

hashCode

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

eqTo

public boolean eqTo(java.lang.Object that)
Description copied from interface: Eq
Return true if this is equivalent to that. that is assumed to be non-null. This is often implemented in terms of Equal.eq(Object, Object). Two "eq" objects should have the same hashCode at the time they are compared.

Specified by:
eqTo in interface Eq