inria.meije.rc.sugarcubes
Class JavaIntegerValue
java.lang.Object
|
+--inria.meije.rc.sugarcubes.JavaIntegerValue
- All Implemented Interfaces:
- JavaExpression, JavaIntegerExpression, java.io.Serializable
- public final class JavaIntegerValue
- extends java.lang.Object
- implements JavaIntegerExpression
Simple implementation of a JavaIntegerExpression used when the integer value is statically defined.
- See Also:
- Serialized Form
Field Summary |
protected int |
i
The constant integer value which is set at construction time. |
Constructor Summary |
JavaIntegerValue(int i)
The constructor of this class gets an integer and stores it for future use (when the evaluate method is called). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
i
protected final int i
- The constant integer value which is set at construction time.
JavaIntegerValue
public JavaIntegerValue(int i)
- The constructor of this class gets an integer and stores it for future use (when the evaluate method is called).
evaluate
public final int evaluate(java.lang.Object self,
LocalVariables vars,
ReactiveEngine engine)
- Returns the integer.
- Specified by:
evaluate
in interface JavaIntegerExpression
- Following copied from interface:
inria.meije.rc.sugarcubes.JavaIntegerExpression
- 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