org.millscript.millscript.action
Class ForConditionAction

java.lang.Object
  extended by org.millscript.millscript.action.Action
      extended by org.millscript.millscript.action.ForConditionAction
All Implemented Interfaces:
org.millscript.commons.alert.AlertOrigin
Direct Known Subclasses:
BindingAction, ForConditionWhereAction, ForConditionWhileAction

public abstract class ForConditionAction
extends Action

The class represents the base of all for loop condition actions.


Constructor Summary
ForConditionAction()
           
 
Method Summary
 void action(Machine mc)
          Performs this action, on the specified machine.
 void setFinallyAction(Action a)
          Sets the finally(termination) action for this for loop condition.
 
Methods inherited from class org.millscript.millscript.action.Action
act, act1, getLineNumber, getOrigin, predAct, setContext, setLineNumber, setOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForConditionAction

public ForConditionAction()
Method Detail

action

public void action(Machine mc)
Description copied from class: Action
Performs this action, on the specified machine. This method must be implemented in sub-classes to perform the required actions.

Specified by:
action in class Action
Parameters:
mc - the machine to perform this action on
See Also:
Action.action(org.millscript.millscript.vm.Machine)

setFinallyAction

public void setFinallyAction(Action a)
Sets the finally(termination) action for this for loop condition. This action will be performed if this condition causes the for loop to terminate.

Parameters:
a - the finally action


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.