- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.command.internal.DefaultParameterParser
-
- 所有已实现的接口:
CommandParamParser
public class DefaultParameterParser extends Object implements CommandParamParser
-
-
构造器概要
构造器 构造器 说明 DefaultParameterParser()
-
方法概要
修饰符和类型 方法 说明 Object
apply(String option, List<String> arguments, boolean hasParam, Class<?> field_type)
static Object
getDefault(Class<?> type)
Object
getDefaultValue(Class<?> type)
static boolean
parseBool(String next)
boolean
skipParams(List<String> args, Class<?> field_type)
void
tabCompile(List<String> result, List<String> args, Class<?> type)
-
-
-
方法详细资料
-
skipParams
public boolean skipParams(List<String> args, Class<?> field_type)
- 指定者:
skipParams
在接口中CommandParamParser
-
apply
public Object apply(String option, List<String> arguments, boolean hasParam, Class<?> field_type) throws ParserFailToParseException
- 指定者:
apply
在接口中CommandParamParser
- 抛出:
ParserFailToParseException
-
tabCompile
public void tabCompile(List<String> result, List<String> args, Class<?> type)
- 指定者:
tabCompile
在接口中CommandParamParser
-
getDefaultValue
public Object getDefaultValue(Class<?> type)
- 指定者:
getDefaultValue
在接口中CommandParamParser
-
parseBool
public static boolean parseBool(String next)
-
-