net.sf.tomp.xtcl
Class InteractiveExecutor

java.lang.Object
  extended by net.sf.tomp.xtcl.InteractiveExecutor

public class InteractiveExecutor
extends java.lang.Object

Simple executor for running XTCL commands from command line, ¨ i.e. console, std. input

Author:
tomp

Field Summary
protected  Context context
          Context for commands compilation and execution
 
Constructor Summary
protected InteractiveExecutor(Context c)
          Creates a new instance of InteractiveExecutor
 
Method Summary
 int interactive()
          Executes a command in the current context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected Context context
Context for commands compilation and execution

Constructor Detail

InteractiveExecutor

protected InteractiveExecutor(Context c)
Creates a new instance of InteractiveExecutor

Parameters:
c - Context for the Executor
Method Detail

interactive

public int interactive()
                throws java.lang.Exception
Executes a command in the current context. Runs interactively in a loop until END command is entered

Returns:
DOCUMENT ME!
Throws:
java.lang.Exception - DOCUMENT ME!


Copyright © 2004-2005 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.