当前位置: 首页>>代码示例>>Java>>正文


Java Standard.optionLength方法代码示例

本文整理汇总了Java中com.sun.tools.doclets.standard.Standard.optionLength方法的典型用法代码示例。如果您正苦于以下问题:Java Standard.optionLength方法的具体用法?Java Standard.optionLength怎么用?Java Standard.optionLength使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.tools.doclets.standard.Standard的用法示例。


在下文中一共展示了Standard.optionLength方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static int optionLength(String option) {
  Integer length = StabilityOptions.optionLength(option);
  if (length != null) {
    return length;
  }
  return Standard.optionLength(option);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:IncludePublicAnnotationsStandardDoclet.java

示例2: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
/**
 * Get the number of arguments that a given option expects from the command line. This number includes the option
 * itself: for example '-d /output/javadoc' should return 2.
 *
 * @param optionFlag the option to parse
 * @return the number of arguments it expects from the command line
 */
public static int optionLength(String optionFlag) {
    for (OrchidFlag option : OrchidFlags.getInstance().getFlags()) {
        if (optionFlag.equals("-" + option.getFlag())) {
            return option.optionLength();
        }
    }

    return Standard.optionLength(optionFlag);
}
 
开发者ID:JavaEden,项目名称:Orchid,代码行数:17,代码来源:OrchidJavadoc.java

示例3: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
/**
 * Option check, forwards options to the standard doclet,
 * if that one refuses them, they are used by this doclet.
 */
public static int optionLength(String option) {
  // Workaround http://stackoverflow.com/questions/19181236 courtesy
  // UmlGraphDoc.
  int result = Standard.optionLength(option);
  if (result != 0) {
    return result;
  } else {
    // Ones we want.
    if (OPTION_NAMES.containsKey(option)) { return 2; }
    return 0;
  }
}
 
开发者ID:mikesamuel,项目名称:closure-maven-plugin,代码行数:17,代码来源:PluginConfigDoclet.java

示例4: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static int optionLength(String option) {
    if (OPTION_CATEGORY.equals(option)) {
        return 2;
    }

    if (OPTION_SOURCE_CLASS_PATH.equals(option)) {
        return 2;
    }

    if (OPTION_NO_PACKAGE_DIAGRAM.equals(option)) {
        return 1;
    }

    int answer = Standard.optionLength(option);

    if (option.equals(OPTION_HELP)) {
        // Print the options provided by APIviz.
        System.out.println();
        System.out.println("Provided by APIviz doclet:");
        System.out.println(OPTION_SOURCE_CLASS_PATH   + " <pathlist>     Specify where to find source class files");
        System.out.println(OPTION_NO_PACKAGE_DIAGRAM  + "               Do not generate the package diagram in the overview summary");
        System.out.println(OPTION_CATEGORY + "                       <category>[:<fillcolor>[:<linecolor>]] ");
        System.out.println("                                    Color for items marked with " + TAG_CATEGORY);
    }

    return answer;
}
 
开发者ID:grahamedgecombe,项目名称:apiviz,代码行数:28,代码来源:APIviz.java

示例5: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static int optionLength(String option) {
    if (option.equals("-resource-info")) {
        return 2;
    } else {
        return Standard.optionLength(option);
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2-transports,代码行数:8,代码来源:TestkitJavadocDoclet.java

示例6: testOptionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
@Test
public void testOptionLength() throws Exception {
    String options = "options";
    int optionsLength = 42;

    PowerMockito.when(Standard.class, "optionLength", options).thenReturn(optionsLength);

    assertEquals(optionsLength, adapter.optionLength(options));

    PowerMockito.verifyStatic();
    Standard.optionLength(options);
}
 
开发者ID:asciidoctor,项目名称:asciidoclet,代码行数:13,代码来源:StandardAdapterTest.java

示例7: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public int optionLength(String option) {
    return Standard.optionLength(option);
}
 
开发者ID:johncarl81,项目名称:exportdoclet,代码行数:4,代码来源:StandardAdapter.java

示例8: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static int optionLength(String option) {
    return Standard.optionLength(option);
}
 
开发者ID:SUPENTA,项目名称:flitchio-sdk,代码行数:4,代码来源:JavadocFilter.java

示例9: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static int optionLength(String option)
{
    return Standard.optionLength(option);
}
 
开发者ID:sojamo,项目名称:controlp5,代码行数:5,代码来源:ExcludeDoclet.java

示例10: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static int optionLength (String option) {
	return Standard.optionLength(option);
}
 
开发者ID:kotcrab,项目名称:vis-editor,代码行数:4,代码来源:PublicApiDoclet.java

示例11: optionLength

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static int optionLength(String option) {
  return Standard.optionLength(option);
}
 
开发者ID:apache,项目名称:tez,代码行数:4,代码来源:ConfigStandardDoclet.java


注:本文中的com.sun.tools.doclets.standard.Standard.optionLength方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。