inria.meije.rc.sugarcubes
Class JavaStringValue
java.lang.Object
|
+--inria.meije.rc.sugarcubes.JavaStringValue
- All Implemented Interfaces:
- JavaExpression, JavaStringExpression, java.io.Serializable
- public final class JavaStringValue
- extends java.lang.Object
- implements JavaStringExpression
It is a simple implementation of a JavaStringExpression used when the String is statically defined.
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
str
The striug which is set at construction time. |
Constructor Summary |
JavaStringValue(java.lang.String s)
The constructor of this class gets a string 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 |
str
protected final java.lang.String str
- The striug which is set at construction time.
JavaStringValue
public JavaStringValue(java.lang.String s)
- The constructor of this class gets a string and stores it for future use (when the evaluate method is called).
evaluate
public final java.lang.String evaluate(java.lang.Object self,
LocalVariables vars,
ReactiveEngine engine)
- Returns the string.
- Specified by:
evaluate
in interface JavaStringExpression
- Following copied from interface:
inria.meije.rc.sugarcubes.JavaStringExpression
- 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