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.
-
commandString
- This field stores the command as it should be given to the interpreter.
-
helpString
- This is the help string
-
jerminal
- This is the Jerminal which will be using the JerminalCommand
-
JerminalCommand(JerminalSession)
-
-
error(String, Exception)
-
-
evaluate(Vector)
- This method is called by the JerminalSession when it uses this command.
-
help(Vector)
- This method is called by evaluate to check for the help flag.
-
print(String)
-
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.
jerminal
public JerminalSession jerminal
- This is the Jerminal which will be using the JerminalCommand
helpString
public String helpString
- This is the help string
JerminalCommand
public JerminalCommand(JerminalSession jerm)
- Parameters:
- jerm - This is the JerminalSession which will be using this command
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
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.
print
public void print(String s)
error
public void error(String s,
Exception e)
All Packages Class Hierarchy This Package Previous Next Index