inria.meije.rc.sugarcubes
Class JavaObjectValue

java.lang.Object
  |
  +--inria.meije.rc.sugarcubes.JavaObjectValue
All Implemented Interfaces:
JavaExpression, JavaObjectExpression, java.io.Serializable

public final class JavaObjectValue
extends java.lang.Object
implements JavaObjectExpression

It is a simple implementation of a JavaObjectExpression used when the reference to the object is statically defined.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object obj
          The constant object reference which is set at construction time.
 
Constructor Summary
JavaObjectValue(java.lang.Object o)
          The constructor of this class gets an object reference and stores it for future use (when the evaluate method is called).
 
Method Summary
 java.lang.Object evaluate(java.lang.Object self, LocalVariables vars, ReactiveEngine engine)
          Returns the object reference.
 java.lang.String toString()
          Returns a string representation of that atomic expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

obj

protected final java.lang.Object obj
The constant object reference which is set at construction time.
Constructor Detail

JavaObjectValue

public JavaObjectValue(java.lang.Object o)
The constructor of this class gets an object reference and stores it for future use (when the evaluate method is called).
Method Detail

evaluate

public final java.lang.Object evaluate(java.lang.Object self,
                                       LocalVariables vars,
                                       ReactiveEngine engine)
Returns the object reference.
Specified by:
evaluate in interface JavaObjectExpression
Following copied from interface: inria.meije.rc.sugarcubes.JavaObjectExpression
See Also:
Cube

toString

public final java.lang.String toString()
Returns a string representation of that atomic expression. (simplify debugging)
Overrides:
toString in class java.lang.Object