Home
last modified time | relevance | path

Searched refs:OptionDefinition (Results 1 – 10 of 10) sorted by relevance

/external/desugar/java/com/google/devtools/common/options/
DIsolatedOptionsData.java19 import com.google.devtools.common.options.OptionDefinition.NotAnOptionException;
56 private static final Map<Class<? extends OptionsBase>, ImmutableList<OptionDefinition>>
60 public static synchronized ImmutableList<OptionDefinition> getAllOptionDefinitionsForClass( in getAllOptionDefinitionsForClass()
69 return OptionDefinition.extractOptionDefinition(field); in getAllOptionDefinitionsForClass()
77 .sorted(OptionDefinition.BY_OPTION_NAME) in getAllOptionDefinitionsForClass()
92 private final ImmutableMap<String, OptionDefinition> nameToField;
100 private final ImmutableMap<String, OptionDefinition> oldNameToField;
103 private final ImmutableMap<Character, OptionDefinition> abbrevToField;
114 Map<String, OptionDefinition> nameToField,
115 Map<String, OptionDefinition> oldNameToField,
[all …]
DOptionsParser.java25 import com.google.devtools.common.options.OptionDefinition.NotAnOptionException;
239 private final OptionDefinition optionDefinition;
242 OptionDescription(OptionDefinition definition, OptionsData optionsData) { in OptionDescription()
247 public OptionDefinition getOptionDefinition() { in getOptionDefinition()
297 LinkedHashMap<OptionDocumentationCategory, List<OptionDefinition>> optionsByCategory = in describeOptions()
301 for (Map.Entry<OptionDocumentationCategory, List<OptionDefinition>> e : in describeOptions()
304 List<OptionDefinition> categorizedOptionList = e.getValue(); in describeOptions()
311 for (OptionDefinition optionDef : categorizedOptionList) { in describeOptions()
322 private LinkedHashMap<OptionDocumentationCategory, List<OptionDefinition>>
330 ListMultimap<OptionDocumentationCategory, OptionDefinition> optionsByCategories = in getOptionsSortedByCategory()
[all …]
DOptionDefinition.java32 public class OptionDefinition implements Comparable<OptionDefinition> { class
51 static OptionDefinition extractOptionDefinition(Field field) { in extractOptionDefinition()
56 return new OptionDefinition(field, annotation); in extractOptionDefinition()
64 private OptionDefinition(Field field, Option optionAnnotation) { in OptionDefinition() method in OptionDefinition
289 if (!(object instanceof OptionDefinition)) { in equals()
292 OptionDefinition otherOption = (OptionDefinition) object; in equals()
302 public int compareTo(OptionDefinition o) { in compareTo()
311 static final Comparator<OptionDefinition> BY_OPTION_NAME =
312 Comparator.comparing(OptionDefinition::getOptionName);
318 static final Comparator<OptionDefinition> BY_CATEGORY =
DOptionsParserImpl.java61 private final Map<OptionDefinition, OptionValueDescription> optionValues = new HashMap<>();
155 for (Map.Entry<String, OptionDefinition> mapEntry : optionsData.getAllOptionDefinitions()) { in asListOfEffectiveOptions()
156 OptionDefinition optionDefinition = mapEntry.getValue(); in asListOfEffectiveOptions()
167 private void maybeAddDeprecationWarning(OptionDefinition optionDefinition) { in maybeAddDeprecationWarning()
182 OptionValueDescription clearValue(OptionDefinition optionDefinition) in clearValue()
188 OptionDefinition optionDefinition = optionsData.getOptionDefinitionFromName(name); in getOptionValueDescription()
196 OptionDefinition optionDefinition = optionsData.getOptionDefinitionFromName(name); in getOptionDescription()
208 OptionDefinition expansionFlagDef, OptionInstanceOrigin originOfExpansionFlag) in getExpansionValueDescriptions()
257 OptionDefinition optionDefinition = optionsData.getOptionDefinitionFromName(name); in containsExplicitOption()
273 Function<OptionDefinition, String> sourceFunction, in parse() argument
[all …]
DOptionsData.java34 private final ImmutableMap<OptionDefinition, ImmutableList<String>> evaluatedExpansions;
38 IsolatedOptionsData base, Map<OptionDefinition, ImmutableList<String>> evaluatedExpansions) { in OptionsData() argument
50 public ImmutableList<String> getEvaluatedExpansion(OptionDefinition optionDefinition) { in getEvaluatedExpansion()
66 ImmutableMap.Builder<OptionDefinition, ImmutableList<String>> evaluatedExpansionsBuilder = in from()
68 for (Map.Entry<String, OptionDefinition> entry : isolatedData.getAllOptionDefinitions()) { in from()
69 OptionDefinition optionDefinition = entry.getValue(); in from()
DOptionValueDescription.java36 protected final OptionDefinition optionDefinition;
38 public OptionValueDescription(OptionDefinition optionDefinition) { in OptionValueDescription()
42 public OptionDefinition getOptionDefinition() { in getOptionDefinition()
94 OptionDefinition option, OptionsData optionsData) { in createOptionValueDescription()
110 public static OptionValueDescription getDefaultOptionValue(OptionDefinition option) { in getDefaultOptionValue()
116 private DefaultOptionValueDescription(OptionDefinition optionDefinition) { in DefaultOptionValueDescription()
151 private SingleOptionValueDescription(OptionDefinition optionDefinition) { in SingleOptionValueDescription()
263 private RepeatableOptionValueDescription(OptionDefinition optionDefinition) { in RepeatableOptionValueDescription()
341 OptionDefinition optionDefinition, OptionsData optionsData) { in ExpansionOptionValueDescription()
391 private OptionWithImplicitRequirementsValueDescription(OptionDefinition optionDefinition) { in OptionWithImplicitRequirementsValueDescription()
DOptionsUsage.java45 List<OptionDefinition> optionDefinitions = in getUsage()
47 optionDefinitions.sort(OptionDefinition.BY_OPTION_NAME); in getUsage()
48 for (OptionDefinition optionDefinition : optionDefinitions) { in getUsage()
90 OptionDefinition optionDefinition, OptionsData optionsData) { in getExpansionIfKnown()
108 OptionDefinition optionDefinition, in getUsage()
194 OptionDefinition optionDefinition, in getUsageHtml()
317 static void getCompletion(OptionDefinition optionDefinition, StringBuilder builder) { in getCompletion()
347 private static String getTypeDescription(OptionDefinition optionsDefinition) { in getTypeDescription()
351 static String getFlagName(OptionDefinition optionDefinition) { in getFlagName()
DParsedOptionDescription.java30 private final OptionDefinition optionDefinition;
36 OptionDefinition optionDefinition, in ParsedOptionDescription()
47 OptionDefinition optionDefinition, in newParsedOptionDescription()
65 OptionDefinition optionDefinition, OptionInstanceOrigin origin) { in newDummyInstance()
69 public OptionDefinition getOptionDefinition() { in getOptionDefinition()
DOptionsBase.java77 OptionDefinition optionDefinition = OptionDefinition.extractOptionDefinition(entry.getKey()); in asMap()
DInvocationPolicyEnforcer.java432 OptionDefinition subflag = subflagDesc.getOptionDefinition(); in getSetValueSubflagAsPolicy()
550 OptionDefinition optionDefinition = flagPolicy.description.getOptionDefinition(); in applySetValueOperation()
615 OptionsParser parser, String policyType, OptionDefinition option, Level loglevel) in applyUseDefaultOperation()
690 OptionDefinition optionDefinition = optionDescription.getOptionDefinition(); in apply()
762 OptionDefinition optionDefinition = optionDescription.getOptionDefinition(); in checkDefaultValue()
807 OptionDefinition option = optionDescription.getOptionDefinition(); in checkUserValue()