Home
last modified time | relevance | path

Searched refs:optionsClass (Results 1 – 7 of 7) sorted by relevance

/external/desugar/java/com/google/devtools/common/options/
DOptions.java51 public static <O extends OptionsBase> Options<O> parse(Class<O> optionsClass, String... args) in parse() argument
53 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() argument
68 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() argument
85 return parse(optionsClass, new String[0]).getOptions(); in getDefaults()
96 public static String getUsage(Class<? extends OptionsBase> optionsClass) { in getUsage() argument
98 OptionsUsage.getUsage(optionsClass, usage); in getUsage()
DOptionsParser.java141 static OptionsData getOptionsDataInternal(Class<? extends OptionsBase> optionsClass) in getOptionsDataInternal() argument
143 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 …]
DOptionsClassProvider.java25 public <O extends OptionsBase> O getOptions(Class<O> optionsClass) {
37 @Nullable <O extends OptionsBase> O getOptions(Class<O> optionsClass); in getOptions() argument
DIsolatedOptionsData.java61 Class<? extends OptionsBase> optionsClass) { in getAllOptionDefinitionsForClass() argument
63 optionsClass, in getAllOptionDefinitionsForClass()
168 public boolean getUsesOnlyCoreTypes(Class<? extends OptionsBase> optionsClass) {
169 return usesOnlyCoreTypes.get(optionsClass);
DOptionsUsage.java43 static void getUsage(Class<? extends OptionsBase> optionsClass, StringBuilder usage) { in getUsage() argument
44 OptionsData data = OptionsParser.getOptionsDataInternal(optionsClass); in getUsage()
46 new ArrayList<>(OptionsData.getAllOptionDefinitionsForClass(optionsClass)); in getUsage()
DOptionsParserImpl.java536 <O extends OptionsBase> O getParsedOptions(Class<O> optionsClass) { in getParsedOptions() argument
540 Constructor<O> constructor = optionsData.getConstructor(optionsClass); in getParsedOptions()
551 OptionsData.getAllOptionDefinitionsForClass(optionsClass)) { in getParsedOptions()
/external/desugar/java/com/google/devtools/common/options/testing/
DOptionsTester.java34 private final Class<? extends OptionsBase> optionsClass; field in OptionsTester
36 public OptionsTester(Class<? extends OptionsBase> optionsClass) { in OptionsTester() argument
37 this.optionsClass = optionsClass; in OptionsTester()
40 private static ImmutableList<Field> getAllFields(Class<? extends OptionsBase> optionsClass) { in getAllFields() argument
42 Class<? extends OptionsBase> current = optionsClass; in getAllFields()
60 for (Field field : getAllFields(optionsClass)) { in testAllInstanceFieldsAnnotatedWithOption()
84 for (Field field : getAllFields(optionsClass)) { in testAllDefaultValuesTestedBy()