|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandSession
| Method Summary | |
|---|---|
void |
close()
Close this command session. |
Object |
convert(Class<?> type,
Object instance)
Convert an object to another type. |
Object |
execute(CharSequence commandline)
Execute a program in this session. |
CharSequence |
format(Object target,
int level)
Convert an object to string form (CharSequence). |
Object |
get(String name)
Get the value of a variable. |
PrintStream |
getConsole()
Return the PrintStream for the console. |
InputStream |
getKeyboard()
Return the input stream that is the first of the pipeline. |
void |
put(String name,
Object value)
Set the value of a variable. |
| Method Detail |
|---|
Object execute(CharSequence commandline)
throws Exception
commandline -
Exceptionvoid close()
- InputStream getKeyboard()
PrintStream getConsole()
Object get(String name)
name -
void put(String name,
Object value)
name - Name of the variable.value - Value of the variable
CharSequence format(Object target,
int level)
target - level -
Object convert(Class<?> type,
Object instance)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||