org.millscript.millscript.action
Class MethodOverrideAction

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

public final class MethodOverrideAction
extends Action

This class implements the action used when defining a new method. This action returns a new many body function which can then be bound to the relevant variable.

See Also:
MethodExpr, DefineSyntax

Constructor Summary
MethodOverrideAction(Action mba, Action sc, Action mfa)
          Constructs a new method override action, to introduce a method override for the specified method, using the specified dispatch type and body
 
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

MethodOverrideAction

public MethodOverrideAction(Action mba,
                            Action sc,
                            Action mfa)
Constructs a new method override action, to introduce a method override for the specified method, using the specified dispatch type and body

Parameters:
mba - the action that generates the ManyBodyFunction we are adding an override to
sc - the action that generates the enclosing Spice class to dispatch on
mfa - the action that generates the Function for the new overrides body
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.