|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.hpd.CLI
public class CLI
Constructor Summary | |
---|---|
CLI(String prompt,
Writer outWriter)
Constructor that creates a new steppingEngine |
|
CLI(String prompt,
Writer outWriter,
SteppingEngine steppingEngine)
Constructor |
Method Summary | |
---|---|
int |
complete(String buffer,
int cursor,
List candidates)
Handle ConsoleReader Completor |
void |
doAttach(Proc proc,
boolean running)
|
String |
execCommand(String cmd)
|
void |
flushMessages()
Makes sure that all messages for the user by commands through addMessage() are displayed. |
frysk.hpd.PTSet |
getCommandPTSet(frysk.hpd.Input cmd)
|
PrintWriter |
getPrintWriter()
Return output writer. |
String |
getPrompt()
|
static boolean |
notRunningProc(int pid,
HashMap checkFiles)
notRunningFile make sure we are not running the "go" command on procs that are loaded or on core files. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CLI(String prompt, Writer outWriter, SteppingEngine steppingEngine)
prompt
- String initially to be used as the promptout
- PrintWriter for outputsteppingEngine
- existing SteppingEnginepublic CLI(String prompt, Writer outWriter)
prompt
- String initially to be used as the promptout
- PrintWriter for output.Method Detail |
---|
public int complete(String buffer, int cursor, List candidates)
buffer
- Input buffer.cursor
- Position of TAB in buffer.candidates
- List that may complete token.
public void doAttach(Proc proc, boolean running)
public String getPrompt()
public String execCommand(String cmd)
public void flushMessages()
public PrintWriter getPrintWriter()
public frysk.hpd.PTSet getCommandPTSet(frysk.hpd.Input cmd)
public static boolean notRunningProc(int pid, HashMap checkFiles)
checkFiles
- is a HashMap containing the procs we want to checktask
- is what we need to check against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |