All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.cometway.jerminal.commands.JerminalCommand

com.cometway.jerminal.commands.JerminalCommand

public abstract class JerminalCommand
This is the super class of all Jerminal commands.


Variable Index

 o commandString
This field stores the command as it should be given to the interpreter.
 o helpString
This is the help string
 o jerminal
This is the Jerminal which will be using the JerminalCommand

Constructor Index

 o JerminalCommand(JerminalSession)

Method Index

 o error(String, Exception)
 o evaluate(Vector)
This method is called by the JerminalSession when it uses this command.
 o help(Vector)
This method is called by evaluate to check for the help flag.
 o print(String)

Variables

 o commandString
 public String commandString
This field stores the command as it should be given to the interpreter. This should be set to what the classname is.

 o jerminal
 public JerminalSession jerminal
This is the Jerminal which will be using the JerminalCommand

 o helpString
 public String helpString
This is the help string

Constructors

 o JerminalCommand
 public JerminalCommand(JerminalSession jerm)
Parameters:
jerm - This is the JerminalSession which will be using this command

Methods

 o help
 public boolean help(Vector operands)
This method is called by evaluate to check for the help flag.

Parameters:
operands - The list of operands to check for the help flag.
Returns:
Returns TRUE if there exists the help flag in the operands
 o evaluate
 public abstract Object evaluate(Vector operands)
This method is called by the JerminalSession when it uses this command.

Parameters:
operands - This Vector contains the operands (arguments) which were issued with the command.
Returns:
Returns the result of the evaluation.
 o print
 public void print(String s)
 o error
 public void error(String s,
                   Exception e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index