本文整理汇总了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;
}
示例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);
}
示例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);
}
示例4: validOptions
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public boolean validOptions(String[][] options, DocErrorReporter errorReporter) {
return Standard.validOptions(options, errorReporter);
}
示例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();
}
示例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);
}
示例7: validOptions
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean validOptions(String options[][], DocErrorReporter reporter) {
return Standard.validOptions(options, reporter);
}
示例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);
}
示例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);
}
示例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;
}
}