org.millscript.millscript.action
Class BindingFromToAction

java.lang.Object
  extended by org.millscript.millscript.action.Action
      extended by org.millscript.millscript.action.ForConditionAction
          extended by org.millscript.millscript.action.BindingAction
              extended by org.millscript.millscript.action.BindingFromToAction
All Implemented Interfaces:
org.millscript.commons.alert.AlertOrigin

public final class BindingFromToAction
extends BindingAction

This class represents a for loop from-to counter binding action. A from-to counter action binds a counter to a name, where the counter increases on each iteration, up to a specified value. This condition will cause the for loop to terminate when the counter reaches the end value.


Constructor Summary
BindingFromToAction(Ident a, Action b, Action c)
          Constructs a new from-to counter binding action, with the suplied name, starting point and end point actions.
 
Method Summary
 
Methods inherited from class org.millscript.millscript.action.ForConditionAction
action, setFinallyAction
 
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

BindingFromToAction

public BindingFromToAction(Ident a,
                           Action b,
                           Action c)
Constructs a new from-to counter binding action, with the suplied name, starting point and end point actions.

Parameters:
a - Ident of the variable this action is bound to
b - Action which generates the starting point for the counter
c - Action which generates the end point for the counter


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