|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.tinygroup.command.CommandSystem
public final class CommandSystem
命令执行系统,采用多例实现,因此可以支持多个命令体系
| 字段摘要 | |
|---|---|
static String |
COMMANDS_XSTREAM
|
| 方法摘要 | |
|---|---|
void |
execute(String cmd)
执行一个命令 |
Map<String,Command> |
getCommands()
|
org.tinygroup.context.Context |
getContext()
返回环境 |
static CommandSystem |
getInstance(String name)
|
static CommandSystem |
getInstance(String name,
Commands commands,
OutputStream out)
获得命令执行系统实例 |
OutputStream |
getOutputStream()
获得输入流 |
int |
indentPrint(String str,
int tab)
|
void |
print(String str)
|
void |
println()
|
void |
println(String str)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String COMMANDS_XSTREAM
| 方法详细信息 |
|---|
public OutputStream getOutputStream()
public static CommandSystem getInstance(String name,
Commands commands,
OutputStream out)
type - out -
public static CommandSystem getInstance(String name)
public Map<String,Command> getCommands()
public org.tinygroup.context.Context getContext()
public void execute(String cmd)
cmd - public void println(String str)
public void println()
public void print(String str)
public int indentPrint(String str,
int tab)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||