All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Comnd.ComndContext

java.lang.Object
   |
   +----Acme.Comnd.ComndContext

public abstract class ComndContext
extends Object
Comnd context object.

This represents an instance of command parsing.

Fetch the software.
Fetch the entire Acme package.


Variable Index

 o in
 o out

Constructor Index

 o ComndContext()
Let the I/O streams default to System.in and System.err.
 o ComndContext(InputStream, PrintStream)
If you are running in a CLI context, use the regular I/O streams.
 o ComndContext(InputStream, PrintStream, Toolkit)
If you are running in a GUI context, pass in the Toolkit.

Method Index

 o beep()
Emit a beep.
 o getChar()
 o parseLine(String, Comnd)
Main entry point for parsing a command line.

Variables

 o in
 public InputStream in
 o out
 public PrintStream out

Constructors

 o ComndContext
 public ComndContext(InputStream in,
                     PrintStream out,
                     Toolkit toolkit)
If you are running in a GUI context, pass in the Toolkit.

 o ComndContext
 public ComndContext(InputStream i,
                     PrintStream o)
If you are running in a CLI context, use the regular I/O streams.

 o ComndContext
 public ComndContext()
Let the I/O streams default to System.in and System.err.

Methods

 o parseLine
 public Comnd[] parseLine(String prompt,
                          Comnd cmd)
Main entry point for parsing a command line.

 o getChar
 protected char getChar()
 o beep
 public void beep()
Emit a beep.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs