|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.sandia.ccaffeine.cmd.CmdContext
public abstract class CmdContext
The actions for any useful command-line interface ultimately depend on some context information; each specific interpreter will subclass CmdContext differently, and write CmdActions that use interpreter specific data or methods.
Constructor Summary | |
---|---|
CmdContext()
|
Method Summary | |
---|---|
boolean |
debug()
Get the debug switch value. |
abstract java.lang.String |
getClass(java.lang.String className)
Interpreter can define a restricted set of classes as qualified for command-line use. |
abstract java.lang.String |
getInstance(java.lang.String instanceName)
Interpreter can define a restricted set of instances as qualified for command-line use. |
abstract void |
p(java.lang.String s)
Interpreter has a function for writing from a String. |
abstract void |
pn(java.lang.String s)
Interpreter has a function for writing line from a String. |
abstract java.lang.String |
prompt()
prompt string |
abstract java.lang.String |
readLine()
Interpreter has to get input from somewhere, line at a time. |
boolean |
setDebug(boolean d)
Set the debug switch value. |
boolean |
setVerbose(boolean v)
Set the verbose switch value. |
boolean |
verbose()
Get the verbose switch value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmdContext()
Method Detail |
---|
public boolean setDebug(boolean d)
public boolean debug()
public boolean setVerbose(boolean v)
public boolean verbose()
public abstract void pn(java.lang.String s)
public abstract void p(java.lang.String s)
public abstract java.lang.String prompt()
public abstract java.lang.String readLine() throws java.io.IOException
java.io.IOException
public abstract java.lang.String getClass(java.lang.String className)
public abstract java.lang.String getInstance(java.lang.String instanceName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |