/external/desugar/java/com/google/devtools/common/options/ |
D | IsolatedOptionsData.java | 19 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 …]
|
D | OptionsParser.java | 25 import com.google.devtools.common.options.OptionDefinition.NotAnOptionException; 240 private final OptionDefinition optionDefinition; 243 OptionDescription(OptionDefinition definition, OptionsData optionsData) { in OptionDescription() 248 public OptionDefinition getOptionDefinition() { in getOptionDefinition() 298 LinkedHashMap<OptionDocumentationCategory, List<OptionDefinition>> optionsByCategory = in describeOptions() 302 for (Entry<OptionDocumentationCategory, List<OptionDefinition>> e : in describeOptions() 305 List<OptionDefinition> categorizedOptionList = e.getValue(); in describeOptions() 312 for (OptionDefinition optionDef : categorizedOptionList) { in describeOptions() 323 private LinkedHashMap<OptionDocumentationCategory, List<OptionDefinition>> 331 ListMultimap<OptionDocumentationCategory, OptionDefinition> optionsByCategories = in getOptionsSortedByCategory() [all …]
|
D | OptionDefinition.java | 32 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 294 if (!(object instanceof OptionDefinition)) { in equals() 297 OptionDefinition otherOption = (OptionDefinition) object; in equals() 307 public int compareTo(OptionDefinition o) { in compareTo() 316 static final Comparator<OptionDefinition> BY_OPTION_NAME = 317 Comparator.comparing(OptionDefinition::getOptionName); 323 static final Comparator<OptionDefinition> BY_CATEGORY =
|
D | OptionsParserImpl.java | 61 private final Map<OptionDefinition, OptionValueDescription> optionValues = new HashMap<>(); 154 for (Map.Entry<String, OptionDefinition> mapEntry : optionsData.getAllOptionDefinitions()) { in asListOfEffectiveOptions() 155 OptionDefinition optionDefinition = mapEntry.getValue(); in asListOfEffectiveOptions() 166 private void maybeAddDeprecationWarning(OptionDefinition optionDefinition) { in maybeAddDeprecationWarning() 181 OptionValueDescription clearValue(OptionDefinition optionDefinition) in clearValue() 187 OptionDefinition optionDefinition = optionsData.getOptionDefinitionFromName(name); in getOptionValueDescription() 195 OptionDefinition optionDefinition = optionsData.getOptionDefinitionFromName(name); in getOptionDescription() 207 OptionDefinition expansionFlag, OptionInstanceOrigin originOfExpansionFlag) in getExpansionValueDescriptions() 252 OptionDefinition optionDefinition = optionsData.getOptionDefinitionFromName(name); in containsExplicitOption() 268 Function<OptionDefinition, String> sourceFunction, in parse() argument [all …]
|
D | OptionInstanceOrigin.java | 25 @Nullable private final OptionDefinition implicitDependent; 26 @Nullable private final OptionDefinition expandedFrom; 31 OptionDefinition implicitDependent, in OptionInstanceOrigin() 32 OptionDefinition expandedFrom) { in OptionInstanceOrigin() 49 public OptionDefinition getImplicitDependent() { in getImplicitDependent() 54 public OptionDefinition getExpandedFrom() { in getExpandedFrom()
|
D | OptionValueDescription.java | 36 protected final OptionDefinition optionDefinition; 38 public OptionValueDescription(OptionDefinition optionDefinition) { in OptionValueDescription() 42 public OptionDefinition getOptionDefinition() { in getOptionDefinition() 94 OptionDefinition option, OptionsData optionsData) { in createOptionValueDescription() 112 public static OptionValueDescription getDefaultOptionValue(OptionDefinition option) { in getDefaultOptionValue() 118 private DefaultOptionValueDescription(OptionDefinition optionDefinition) { in DefaultOptionValueDescription() 153 private SingleOptionValueDescription(OptionDefinition optionDefinition) { in SingleOptionValueDescription() 190 OptionDefinition implicitDependent = parsedOption.getImplicitDependent(); in addOptionInstance() 191 OptionDefinition expandedFrom = parsedOption.getExpandedFrom(); in addOptionInstance() 192 OptionDefinition optionThatDependsOnEffectiveValue = in addOptionInstance() [all …]
|
D | OptionsData.java | 34 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()
|
D | ParsedOptionDescription.java | 29 private final OptionDefinition optionDefinition; 35 OptionDefinition optionDefinition, in ParsedOptionDescription() 45 public OptionDefinition getOptionDefinition() { in getOptionDefinition() 130 OptionDefinition getImplicitDependent() { in getImplicitDependent() 134 OptionDefinition getExpandedFrom() { in getExpandedFrom()
|
D | OptionsUsage.java | 45 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()
|
D | OptionsBase.java | 78 OptionDefinition optionDefinition = OptionDefinition.extractOptionDefinition(entry.getKey()); in asMap()
|
D | InvocationPolicyEnforcer.java | 425 OptionDefinition subflag = subflagDesc.getOptionDefinition(); in getSetValueSubflagAsPolicy() 543 OptionDefinition optionDefinition = flagPolicy.description.getOptionDefinition(); in applySetValueOperation() 608 OptionsParser parser, String policyType, OptionDefinition option, Level loglevel) in applyUseDefaultOperation() 683 OptionDefinition optionDefinition = optionDescription.getOptionDefinition(); in apply() 751 OptionDefinition optionDefinition = optionDescription.getOptionDefinition(); in checkDefaultValue() 792 OptionDefinition option = optionDescription.getOptionDefinition(); in checkUserValue()
|