cvm.ucm.interpreter
Class MacroCommand

java.lang.Object
  extended by cvm.ucm.interpreter.MacroCommand
All Implemented Interfaces:
Command

public class MacroCommand
extends java.lang.Object
implements Command

Command Encapsulation for Macro execution. The MacroCommand will incapsulate a Macro for later execution. The Macro comes in the form of a MacroNode that contains a ScriptInterpreter and the list of values to execute.

Author:
Frank Hernandez
See Also:
MacroNode

Constructor Summary
MacroCommand(MacroNode node, java.lang.String sName)
           
 
Method Summary
 void execute()
          This is the implementation of the Command execute method.
 java.lang.String getName()
          Retruens the Name of the Macro to Execute.
 MacroNode getNode()
          Returns the Macro Node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroCommand

public MacroCommand(MacroNode node,
                    java.lang.String sName)
Method Detail

execute

public void execute()
             throws java.lang.Exception
This is the implementation of the Command execute method. This method executes the Command by evalueting the ScriptInterpreter inside the MacroNode with the parameter values.

Specified by:
execute in interface Command
Throws:
java.lang.Exception
See Also:
MacroNode

getNode

public MacroNode getNode()
Returns the Macro Node.


getName

public java.lang.String getName()
Retruens the Name of the Macro to Execute.

Returns:
macroName