inria.meije.rc.sugarcubes
Class JavaNothing
java.lang.Object
|
+--inria.meije.rc.sugarcubes.JavaNothing
- All Implemented Interfaces:
- JavaAction, java.io.Serializable
- public final class JavaNothing
- extends java.lang.Object
- implements JavaAction
It is a simple implementation of an atomic action, which does nothing. It is used in many cases when one doesn't need some features of some SugarCubes instructions. For example, notifications to java in a SC.link(java.lang.Object, inria.meije.rc.sugarcubes.Program)
or a SC.cube(inria.meije.rc.sugarcubes.JavaStringExpression, inria.meije.rc.sugarcubes.JavaObjectExpression, inria.meije.rc.sugarcubes.Program)
instruction...
- See Also:
- Serialized Form
Method Summary |
void |
execute(java.lang.Object self,
LocalVariables vars,
ReactiveEngine engine)
The execute method of that atomic action does nothing. |
java.lang.String |
toString()
Returns the string representation of that atomic action. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JavaNothing
public JavaNothing()
execute
public final void execute(java.lang.Object self,
LocalVariables vars,
ReactiveEngine engine)
- The execute method of that atomic action does nothing.
- Specified by:
execute
in interface JavaAction
toString
public final java.lang.String toString()
- Returns the string representation of that atomic action.
- Overrides:
toString
in class java.lang.Object