| 程序包 | 说明 |
|---|---|
| xyz.scootaloo.console.app | |
| xyz.scootaloo.console.app.application | |
| xyz.scootaloo.console.app.parser | |
| xyz.scootaloo.console.app.parser.preset |
| 限定符和类型 | 方法和说明 |
|---|---|
static Interpreter |
ApplicationRunner.getInterpreter(ConsoleConfig config) |
| 构造器和说明 |
|---|
ConsoleApplication(ConsoleConfig config,
Interpreter interpreter)
需要以一个配置类和一个解释器做为生成此实例的条件
生成对象时,会执行初始化命令
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
OptionHandle.runWithParameter(String cmd,
String optionParameter,
List<String> argItems,
Interpreter interpreter)
带参数运行
|
static void |
ExtraOptionHandle.setInterpreter(Interpreter zInterpreter)
一个比较容易想到的办法就是通过 setter 将解释器注入进来,缺点是暴露了一个没什么用的API
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
VariableSetter.runWithParameter(String cmd,
String optionParameter,
List<String> argItems,
Interpreter interpreter) |
void |
BackstageTask.runWithParameter(String cmd,
String optionParameter,
List<String> argItems,
Interpreter interpreter) |
Copyright © 2021. All rights reserved.