public class SystemPresetCmd extends Colorful implements AppListenerAdapter
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SystemPresetCmd.Help |
Console.DbExProvider<T1,T2,R>, Console.ExProvider<T,R>, Console.WithoutReturnVar_DB_Provider<T1,T2>| 限定符和类型 | 字段和说明 |
|---|---|
protected static SystemPresetCmd |
INSTANCE |
protected static String |
SYS_TAG |
| 构造器和说明 |
|---|
SystemPresetCmd() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(Moment moment) |
String |
getName() |
int |
getOrder() |
String |
info() |
void |
onAppStarted(ConsoleConfig conf) |
void |
onInputResolved(String cmdName,
InvokeInfo info) |
void |
onResolveInput(String cmdName,
List<String> cmdItems) |
blue, cyanogen, green, grey, purple, red, white, yellowprint, printlnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenable, onInputconfig, dbEx, dbEx, ex, ex, exit0, exit0, factories, onException, onException, onException, wDbExprotected static final SystemPresetCmd INSTANCE
public String getName()
getName 在接口中 AppListenerpublic int getOrder()
getOrder 在接口中 AppListenergetOrder 在接口中 AppListenerAdapterpublic void onAppStarted(ConsoleConfig conf)
onAppStarted 在接口中 AppListeneronAppStarted 在接口中 AppListenerAdapterconf - 系统装配完命令,已获取配置类,监听此事件可以获取这个配置类public boolean accept(Moment moment)
accept 在接口中 AppListeneraccept 在接口中 AppListenerAdaptermoment - 当前系统运行到的节点public void onResolveInput(String cmdName, List<String> cmdItems)
onResolveInput 在接口中 AppListeneronResolveInput 在接口中 AppListenerAdaptercmdName - 当前准备处理的命令的名字cmdItems - 此命令的参数,已按照空格分隔,此时命令还未开始解析,这个时候仍然可以修改键盘输入的命令public void onInputResolved(String cmdName, InvokeInfo info)
onInputResolved 在接口中 AppListeneronInputResolved 在接口中 AppListenerAdaptercmdName - 当前准备处理的命令的名字info - 命令执行执行的返回值包装,假如命令无返回值或者命令执行过程中抛出异常,则得到的值是nullpublic String info()
info 在接口中 AppListenerCopyright © 2021. All rights reserved.