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


Java Standard.validOptions方法代码示例

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


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

示例1: validOptions

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
/** Specified for the Doclet API */
public static boolean validOptions(
    String[][] options,
    DocErrorReporter reporter) {
  ImmutableList.Builder<String[]> optionsForStandardDoclet
      = ImmutableList.builder();
  boolean ok = true;
  for (String[] optionArr : options) {
    OptionName on = OPTION_NAMES.get(optionArr[0]);
    if (on == null) {
      optionsForStandardDoclet.add(optionArr);
    } else {
      ok &= on.isValid(optionArr, reporter);
    }
  }
  ok &= Standard.validOptions(
      optionsForStandardDoclet.build().toArray(new String[0][]), reporter);
  return ok;
}
 
开发者ID:mikesamuel,项目名称:closure-maven-plugin,代码行数:20,代码来源:PluginConfigDoclet.java

示例2: testValidOptions

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
@Test
public void testValidOptions() throws Exception {
    DocErrorReporter mockReporter = mock(DocErrorReporter.class);
    String[][] options = new String[][]{{"test"}};

    PowerMockito.when(Standard.class, "validOptions", options, mockReporter).thenReturn(true);

    assertTrue(adapter.validOptions(options, mockReporter));

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

示例3: validOptions

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean validOptions(String[][] options,
    DocErrorReporter reporter) {
  StabilityOptions.validOptions(options, reporter);
  String[][] filteredOptions = StabilityOptions.filterOptions(options);
  return Standard.validOptions(filteredOptions, reporter);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:IncludePublicAnnotationsStandardDoclet.java

示例4: validOptions

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

示例5: validOptions

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean validOptions(String[][] options, DocErrorReporter reporter) {
    final UMLDocletConfig config = new UMLDocletConfig(options, reporter);
    return Standard.validOptions(config.standardOptions(), reporter) && config.isValid();
}
 
开发者ID:talsma-ict,项目名称:umldoclet,代码行数:5,代码来源:UMLDoclet.java

示例6: validOptions

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean validOptions(String[][] options, DocErrorReporter reporter) throws java.io.IOException {
    return Standard.validOptions(options, reporter);
}
 
开发者ID:SUPENTA,项目名称:flitchio-sdk,代码行数:4,代码来源:JavadocFilter.java

示例7: validOptions

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean validOptions(String options[][], DocErrorReporter reporter) {
    return Standard.validOptions(options, reporter);
}
 
开发者ID:wso2,项目名称:wso2-axis2-transports,代码行数:4,代码来源:TestkitJavadocDoclet.java

示例8: validOptions

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean validOptions(String[][] options, DocErrorReporter reporter)
throws java.io.IOException
{
    return Standard.validOptions(options, reporter);
}
 
开发者ID:sojamo,项目名称:controlp5,代码行数:6,代码来源:ExcludeDoclet.java

示例9: validOptions

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean validOptions (String[][] options, DocErrorReporter reporter)
		throws java.io.IOException {
	return Standard.validOptions(options, reporter);
}
 
开发者ID:kotcrab,项目名称:vis-editor,代码行数:5,代码来源:PublicApiDoclet.java

示例10: validOptions

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
/**
 * As specified by the Doclet specification.
 *
 * @param options          The command line options.
 * @param errorReporter    An error reporter to print messages.
 *
 * @return `true` if the options are valid.
 *
 * @see com.sun.javadoc.Doclet#validOptions(String[][], com.sun.javadoc.DocErrorReporter)
 */
public static boolean validOptions(String[][] options, DocErrorReporter errorReporter) {
    options = new Options().load(options, errorReporter);
    if ( options != null ) {
        return Standard.validOptions(options, errorReporter);
    }
    else {
        return false;
    }
}
 
开发者ID:Abnaxos,项目名称:markdown-doclet,代码行数:20,代码来源:Options.java


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