com.bluemarsh.jswat.command
Class macroCommand

java.lang.Object
  |
  +--com.bluemarsh.jswat.command.JSwatCommand
        |
        +--com.bluemarsh.jswat.command.macroCommand

public class macroCommand
extends JSwatCommand

Defines the class that handles the 'macro' command.

Author:
Nathan Fiedler

Field Summary
protected  java.util.Vector macroCommands
          List of commands that make up the macro.
protected  java.lang.String macroName
          Name of macro being created.
 
Fields inherited from class com.bluemarsh.jswat.command.JSwatCommand
logCategory, primitiveTypeNames, swat
 
Constructor Summary
macroCommand()
           
 
Method Summary
 void perform(Session session, com.bluemarsh.util.StringTokenizer args, Log out)
          Perform the 'macro' command.
 void receiveInput(Session session, Log out, CommandManager cmdman, java.lang.String input)
          Called by the CommandManager when new input has been received from the user.
 
Methods inherited from class com.bluemarsh.jswat.command.JSwatCommand
argumentsMatch, createObject, description, findClassesByPattern, getCommandName, getPromptString, help, help, missingArgs, resolveOverload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

macroName

protected java.lang.String macroName
Name of macro being created.

macroCommands

protected java.util.Vector macroCommands
List of commands that make up the macro.
Constructor Detail

macroCommand

public macroCommand()
Method Detail

perform

public void perform(Session session,
                    com.bluemarsh.util.StringTokenizer args,
                    Log out)
Perform the 'macro' command.
Overrides:
perform in class JSwatCommand
Parameters:
session - JSwat session on which to operate.
args - Tokenized string of command arguments.
out - Output to write messages to.

receiveInput

public void receiveInput(Session session,
                         Log out,
                         CommandManager cmdman,
                         java.lang.String input)
Called by the CommandManager when new input has been received from the user. This asynchronously follows a call to CommandManager.grabInput()
Overrides:
receiveInput in class JSwatCommand
Parameters:
session - JSwat session on which to operate.
out - Output to write messages to.
cmdman - CommandManager that's calling us.
input - Input from user.