Interface | Description |
---|---|
Converter<T> |
A converter is a little helper object that can take a String and
turn it into an instance of type T (the type parameter to the converter).
|
OptionsClassProvider |
A read-only interface for options parser results, which only allows to query the options of
a specific class, but not e.g.
|
OptionsProvider |
A read-only interface for options parser results, which does not allow any
further parsing of options.
|
Class | Description |
---|---|
BoolOrEnumConverter<T extends java.lang.Enum<T>> |
Converter that can also convert from booleans and enumerations.
|
Converters |
Some convenient converters used by blaze.
|
Converters.AssignmentConverter |
A converter for variable assignments from the parameter list of a blaze
command invocation.
|
Converters.BooleanConverter |
A converter for boolean values.
|
Converters.ColonSeparatedOptionListConverter | |
Converters.CommaSeparatedOptionListConverter | |
Converters.HelpVerbosityConverter | |
Converters.LengthLimitingConverter |
Limits the length of a string argument.
|
Converters.LogLevelConverter | |
Converters.OptionalAssignmentConverter |
A converter for variable assignments from the parameter list of a blaze
command invocation.
|
Converters.RangeConverter |
Checks whether an integer is in the given range.
|
Converters.RegexPatternConverter |
Checks whether a string is a valid regex pattern and compiles it.
|
Converters.SeparatedOptionListConverter | |
Converters.StringSetConverter |
Checks whether a string is part of a set of strings.
|
EnumConverter<T extends java.lang.Enum<T>> |
A converter superclass for converters that parse enums.
|
OpaqueOptionsData |
Opaque options data type, returned by
OptionsParser.getOptionsData(com.google.common.collect.ImmutableList<java.lang.Class<? extends com.google.devtools.common.options.OptionsBase>>) and consumed by
OptionsParser.newOptionsParser(OpaqueOptionsData) . |
Options<O extends OptionsBase> |
Interface for parsing options from a single options specification class.
|
OptionsBase |
Base class for all options classes.
|
OptionsParser |
A parser for options.
|
OptionsParser.OptionDescription |
The metadata about an option.
|
OptionsParser.OptionValueDescription |
The name and value of an option with additional metadata describing its
priority, source, whether it was set via an implicit dependency, and if so,
by which other option.
|
OptionsParser.UnparsedOptionValueDescription |
The name and unparsed value of an option with additional metadata describing its
priority, source, whether it was set via an implicit dependency, and if so,
by which other option.
|
Enum | Description |
---|---|
OptionPriority |
The priority of option values, in order of increasing priority.
|
OptionsParser.HelpVerbosity |
The verbosity with which option help messages are displayed: short (just
the name), medium (name, type, default, abbreviation), and long (full
description).
|
TriState |
Enum used to represent tri-state options (yes/no/auto).
|
Exception | Description |
---|---|
DuplicateOptionDeclarationException |
Indicates that an option is declared in more than one class.
|
OptionsParsingException |
An exception that's thrown when the
OptionsParser fails. |
Annotation Type | Description |
---|---|
Option |
An interface for annotating fields in classes (derived from OptionsBase)
that are options.
|