aspoev.interpreter.runtime
Class CommandLineEnvironment

java.lang.Object
  extended byaspoev.interpreter.runtime.ExecutionEnvironment
      extended byaspoev.interpreter.runtime.CommandLineEnvironment

public class CommandLineEnvironment
extends ExecutionEnvironment


Field Summary
protected  boolean finished
           
protected  java.lang.String prompt
           
protected  java.util.Hashtable registeredCommands
           
 
Fields inherited from class aspoev.interpreter.runtime.ExecutionEnvironment
argumentStack, globalFrame, knownClasses, objectStack, staticFrame
 
Constructor Summary
CommandLineEnvironment()
           
 
Method Summary
static void loadTransientClasses()
           
static void main(java.lang.String[] args)
           
protected  void parseStatement(java.lang.String command)
           
protected  void printAccessibleVariables()
           
protected  void printBindings()
           
protected  void printEditHelp()
           
protected  void printHelp()
           
protected  void printPrompt()
           
protected  void printTypes()
           
protected  void processCommand(java.lang.String[] command)
           
protected  void processInput()
           
 void registerCommand(CommandExecutioner command)
          External entities can register commands with this Command Line - that is, they can register one-word cues that tell the command line to let the specified Command Executioner handle the rest of the command.
 void runType(java.lang.String[] runArgs)
           
 java.lang.String toString()
           
 void unregisterCommand(CommandExecutioner command)
           
 
Methods inherited from class aspoev.interpreter.runtime.ExecutionEnvironment
cflow, cflow, cflow, cflow, cflow, declareGlobalVariable, declareGlobalVariable, declareGlobalVariable, declareStaticVariable, declareStaticVariable, declareVariable, declareVariable, declareVariable, getCurrentNameSpace, getCurrentStackFrame, getLocalVariable, getNextNameSpace, getNumArguments, getVariableType, getVariableValue, getVariableValue, initEnvironment, peekCurrent, popArgument, popCurrent, popMethodFrame, popScope, printEnvironment, pushArgument, pushCurrent, pushMethodFrame, pushScope, pushScope, setClassVariable, setLocalVariable, setStaticVariableValue, setVariableValue, setVariableValue, typeCheck, within, within, within, within, within
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

prompt

protected java.lang.String prompt

finished

protected boolean finished

registeredCommands

protected java.util.Hashtable registeredCommands
Constructor Detail

CommandLineEnvironment

public CommandLineEnvironment()
Method Detail

processInput

protected void processInput()

processCommand

protected void processCommand(java.lang.String[] command)

parseStatement

protected void parseStatement(java.lang.String command)

printAccessibleVariables

protected void printAccessibleVariables()

printBindings

protected void printBindings()

printPrompt

protected void printPrompt()

printTypes

protected void printTypes()

registerCommand

public void registerCommand(CommandExecutioner command)
External entities can register commands with this Command Line - that is, they can register one-word cues that tell the command line to let the specified Command Executioner handle the rest of the command. Not that these registered commands take precedence over all other input processing options.


runType

public void runType(java.lang.String[] runArgs)

unregisterCommand

public void unregisterCommand(CommandExecutioner command)

main

public static void main(java.lang.String[] args)

loadTransientClasses

public static void loadTransientClasses()

printEditHelp

protected void printEditHelp()

printHelp

protected void printHelp()

toString

public java.lang.String toString()