org.apache.commons.cli.Option.processValue()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.apache.commons.cli.Option.processValue()方法的一些代码示例,展示了Option.processValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.processValue()方法的具体详情如下:
包路径:org.apache.commons.cli.Option
类名称:Option
方法名:processValue

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);
  }
}

相关文章