inria.meije.rc.sugarcubes
Class JavaArgumentsValue

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

public final class JavaArgumentsValue
extends java.lang.Object
implements JavaArgumentsExpression

This is a simple implementation of a JavaArgumentsExpression, used when no computation at runtime is required. It is typically used when the array of arguments can be statically defined, when building the reactive program.

See Also:
SC.generate(java.lang.String), Serialized Form

Field Summary
protected  Argument[] args
          This is the constant array of Argument objects, which is set at construction time.
 
Constructor Summary
JavaArgumentsValue(Argument[] args)
          The constructor of this class gets an array of Argument objects and stores it for future use (when the evaluate method is called).
 
Method Summary
 Argument[] evaluate(java.lang.Object self, LocalVariables vars, ReactiveEngine engine)
          This method returns the array of Argument.
 java.lang.String toString()
          This method 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

args

protected final Argument[] args
This is the constant array of Argument objects, which is set at construction time.
Constructor Detail

JavaArgumentsValue

public JavaArgumentsValue(Argument[] args)
The constructor of this class gets an array of Argument objects and stores it for future use (when the evaluate method is called).
Method Detail

evaluate

public final Argument[] evaluate(java.lang.Object self,
                                 LocalVariables vars,
                                 ReactiveEngine engine)
This method returns the array of Argument.
Specified by:
evaluate in interface JavaArgumentsExpression

toString

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