Searched refs:optionsClass (Results 1 – 7 of 7) sorted by relevance
51 public static <O extends OptionsBase> Options<O> parse(Class<O> optionsClass, String... args) in parse() argument53 OptionsParser parser = OptionsParser.newOptionsParser(optionsClass); in parse()56 return new Options<>(parser.getOptions(optionsClass), remainingArgs.toArray(new String[0])); in parse()65 Class<O> optionsClass, boolean allowResidue, String... args) { in parseAndExitUponError() argument68 parser = OptionsParser.newOptionsParser(optionsClass); in parseAndExitUponError()76 return new Options<>(parser.getOptions(optionsClass), remainingArgs.toArray(new String[0])); in parseAndExitUponError()83 public static <O extends OptionsBase> O getDefaults(Class<O> optionsClass) { in getDefaults() argument85 return parse(optionsClass, new String[0]).getOptions(); in getDefaults()96 public static String getUsage(Class<? extends OptionsBase> optionsClass) { in getUsage() argument98 OptionsUsage.getUsage(optionsClass, usage); in getUsage()
141 static OptionsData getOptionsDataInternal(Class<? extends OptionsBase> optionsClass) in getOptionsDataInternal() argument143 return getOptionsDataInternal(ImmutableList.of(optionsClass)); in getOptionsDataInternal()332 for (Class<? extends OptionsBase> optionsClass : data.getOptionsClasses()) { in getOptionsSortedByCategory()334 OptionsData.getAllOptionDefinitionsForClass(optionsClass)) { in getOptionsSortedByCategory()375 for (Class<? extends OptionsBase> optionsClass : data.getOptionsClasses()) { in describeOptionsWithDeprecatedCategories()376 allFields.addAll(OptionsData.getAllOptionDefinitionsForClass(optionsClass)); in describeOptionsWithDeprecatedCategories()420 for (Class<? extends OptionsBase> optionsClass : data.getOptionsClasses()) { in describeOptionsHtmlWithDeprecatedCategories()421 allFields.addAll(OptionsData.getAllOptionDefinitionsForClass(optionsClass)); in describeOptionsHtmlWithDeprecatedCategories()509 .flatMap(optionsClass -> OptionsData.getAllOptionDefinitionsForClass(optionsClass).stream()) in visitOptions()686 public <O extends OptionsBase> O getOptions(Class<O> optionsClass) { in getOptions() argument[all …]
25 public <O extends OptionsBase> O getOptions(Class<O> optionsClass) {37 @Nullable <O extends OptionsBase> O getOptions(Class<O> optionsClass); in getOptions() argument
61 Class<? extends OptionsBase> optionsClass) { in getAllOptionDefinitionsForClass() argument63 optionsClass, in getAllOptionDefinitionsForClass()168 public boolean getUsesOnlyCoreTypes(Class<? extends OptionsBase> optionsClass) {169 return usesOnlyCoreTypes.get(optionsClass);
43 static void getUsage(Class<? extends OptionsBase> optionsClass, StringBuilder usage) { in getUsage() argument44 OptionsData data = OptionsParser.getOptionsDataInternal(optionsClass); in getUsage()46 new ArrayList<>(OptionsData.getAllOptionDefinitionsForClass(optionsClass)); in getUsage()
536 <O extends OptionsBase> O getParsedOptions(Class<O> optionsClass) { in getParsedOptions() argument540 Constructor<O> constructor = optionsData.getConstructor(optionsClass); in getParsedOptions()551 OptionsData.getAllOptionDefinitionsForClass(optionsClass)) { in getParsedOptions()
34 private final Class<? extends OptionsBase> optionsClass; field in OptionsTester36 public OptionsTester(Class<? extends OptionsBase> optionsClass) { in OptionsTester() argument37 this.optionsClass = optionsClass; in OptionsTester()40 private static ImmutableList<Field> getAllFields(Class<? extends OptionsBase> optionsClass) { in getAllFields() argument42 Class<? extends OptionsBase> current = optionsClass; in getAllFields()60 for (Field field : getAllFields(optionsClass)) { in testAllInstanceFieldsAnnotatedWithOption()84 for (Field field : getAllFields(optionsClass)) { in testAllDefaultValuesTestedBy()