public class SimpleParameterParser extends Object implements NameableParameterParser
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
SimpleParameterParser.SimpleWrapper |
| 限定符和类型 | 字段和说明 |
|---|---|
static SimpleParameterParser |
INSTANCE |
public static final SimpleParameterParser INSTANCE
public Wrapper parse(Method method, List<String> arg)
parse 在接口中 ParameterParsermethod - 需要提供参数的方法对象arg - 命令参数每段都用空格分隔,这里已经预先分隔成了列表public String name()
name 在接口中 NameableParameterParserpublic boolean check(Method method)
ParameterParsercheck 在接口中 ParameterParsermethod - 方法Copyright © 2021. All rights reserved.