本文整理了Java中org.apache.commons.cli.Option.processValue()
方法的一些代码示例,展示了Option.processValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.processValue()
方法的具体详情如下:
包路径:org.apache.commons.cli.Option
类名称:Option
方法名:processValue
[英]Processes the value. If this Option has a value separator the value will have to be parsed into individual tokens. When n-1 tokens have been processed and there are more value separators in the value, parsing is ceased and the remaining characters are added as a single token.
[中]处理价值。如果此选项具有值分隔符,则必须将值解析为单个标记。当n-1个标记已被处理且值中有更多的值分隔符时,解析将停止,剩余的字符将作为单个标记添加。
代码示例来源:origin: commons-cli/commons-cli
/**
* Adds the specified value to this Option.
*
* @param value is a/the value of this Option
*/
void addValueForProcessing(String value)
{
if (numberOfArgs == UNINITIALIZED)
{
throw new RuntimeException("NO_ARGS_ALLOWED");
}
processValue(value);
}
代码示例来源:origin: cytoscape.corelibs/commons-cli-1-x-cytocape-custom
/**
* Adds the specified value to this Option.
*
* @param value is a/the value of this Option
*/
void addValue(String value) {
switch (numberOfArgs) {
case UNINITIALIZED:
throw new RuntimeException("NO_ARGS_ALLOWED");
default:
processValue(value);
}
}
代码示例来源:origin: org.cytoscape/cy-commons-cli
/**
* Adds the specified value to this Option.
*
* @param value is a/the value of this Option
*/
void addValue(String value) {
switch (numberOfArgs) {
case UNINITIALIZED:
throw new RuntimeException("NO_ARGS_ALLOWED");
default:
processValue(value);
}
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Adds the specified value to this Option.
*
* @param value is a/the value of this Option
*/
void addValueForProcessing(String value)
{
if (numberOfArgs == UNINITIALIZED)
{
throw new RuntimeException("NO_ARGS_ALLOWED");
}
processValue(value);
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.cli
/**
* Adds the specified value to this Option.
*
* @param value is a/the value of this Option
*/
void addValueForProcessing(String value)
{
switch (numberOfArgs)
{
case UNINITIALIZED:
throw new RuntimeException("NO_ARGS_ALLOWED");
default:
processValue(value);
}
}
代码示例来源:origin: sdedit/sdedit
/**
* Adds the specified value to this Option.
*
* @param value is a/the value of this Option
*/
void addValueForProcessing(String value)
{
switch (numberOfArgs)
{
case UNINITIALIZED:
throw new RuntimeException("NO_ARGS_ALLOWED");
default:
processValue(value);
}
}
内容来源于网络,如有侵权,请联系作者删除!