org.millscript.millscript.action
Class CommaAction

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

public final class CommaAction
extends Action

This class represents the action for a comma expression. More specifically this is used anywhere in MillScript where a sequence of actions must be performed, kind of like a very specific linked list of actions.

See Also:
CommaExpr, CommaSyntax

Constructor Summary
CommaAction(Action l, Action r)
          Constructs a new comma action to perform the specified left and right hand actions in sequence.
 
Method Summary
 void action(Machine mc)
          Performs this action, on the specified machine.
 
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

CommaAction

public CommaAction(Action l,
                   Action r)
Constructs a new comma action to perform the specified left and right hand actions in sequence.

Parameters:
l - the left hand, or first, action
r - the right hand, or second, action
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)


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