lookup, which search some or all of the members of this enum in order,
looking for the first match.
The action for an Option is performed handleOption, which determines
whether an argument is needed and where to find it;
handleOption then calls process providing a suitable
OptionHelper to provide access the compiler state.
A subset of options is relevant to the source launcher implementation
located in com. package. When an option is
added, changed, or removed, also update the RelevantJavacOptions class
in the launcher package accordingly.
Maintenance note: when adding new annotation processing related options, the list of options regarded as requesting explicit annotation processing in JavaCompiler should be updated.
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Option.
The kind of argument, if any, accepted by this option. |
| pack-priv static enum | Option.
The kind of choice for "choice" options. |
| pack-priv static enum | |
| public static class | Option.
This exception is thrown when an invalid value is given for an option. |
| pack-priv static enum | Option.
The group for an Option. |
| public static enum | Option.
The kind of an Option. |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| private final Option. | argKind
The kind of argument for this option. |
| protected final String | argsNameKey
Documentation key for arguments. |
| public static final Option | |
| public static final Option | |
| private final Option. | choiceKind
The kind of choices for this option, if any. |
| private final Set | choices
The choices for this option, if any. |
| public static final Option | |
| private static final String | COMPACT_FORMAT
The format for a single-line help entry. |
| public static final Option | |
| public static final Option | |
| private static final int | DEFAULT_MAX_LINE_LENGTH
The nominal maximum line length, when seeing if text will fit on a line. |
| public static final Option | |
| private static final int | DEFAULT_SYNOPSIS_WIDTH
The space allowed for the synopsis, if the description is to be shown on the same line. |
| public static final Option | |
| protected final String | descrKey
Documentation key for description. |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| private final Option. | group
The group for this option. |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| private final Option. | kind
The kind of this option. |
| private static final String | LARGE_INDENT
The automatic indent for the description. |
| public static final Option | |
| public static final String | LINT_CUSTOM_ALL
Special lint category key meaning "all lint categories". |
| public static final String | LINT_CUSTOM_NONE
Special lint category key meaning "no lint categories". |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public final String[] | names
The set of names (primary name and aliases) for this option. |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public final String | primaryName
The "primary name" for this option. |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| private static final String | SMALL_INDENT
The indent for the option synopsis. |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option | |
| public static final Option |
| Access | Constructor and Description |
|---|---|
| private | |
| private | Option(String text, String descrKey, Option.
|
| private | Option(String text, String argsNameKey, String descrKey, Option.
|
| private | Option(String text, String argsNameKey, String descrKey, Option.
|
| private | Option(String text, String argsNameKey, String descrKey, Option.
|
| private | Option(String text, String descrKey, Option.
|
| private | Option(String text, String argsNameKey, String descrKey, Option.
|
| Modifier and Type | Method and Description |
|---|---|
| private static int | Returns: the position of the first':' or '=' character in the word, or -1 if none foundthe word to be scanned word)Scans a word to find the first separator character, either colon or equals. |
| private static String | Returns: a comma separated representation of the valuesthe values to format values)Formats a collection of values as an abbreviated, comma separated list for use in javac help output. |
| public Option. | |
| public Option | Returns: corresponding custom optionIf this option is named |
| public static Set | Returns: the set of options.Returns the set of options supported by the built-in file manager. |
| pack-priv static Set | Returns: the set of options.Returns the set of options supported by the command line tool. |
| public static Set | Returns: the set of options.Returns the set of options supported by this implementation of
the JavaCompiler API, via |
| public Option. | |
| public Option | Returns: corresponding lint custom optionLike |
| private static Set | |
| public Pattern | |
| public String | |
| private static Set | |
| public void | handleOption(OptionHelper
a helper to provide access to the environment helper, String the arg string that identified this option arg, Iterator<String> the remaining strings to be analysed rest)Handles an option. |
| public boolean | |
| public boolean | |
| protected void | |
| protected void | |
| private String | Returns: the synopsisthe name of this form of the option name, Log the log used to localize the description of the arguments log)Composes the initial synopsis of one of the forms for this option. |
| public boolean | |
| public static Option | |
| public static Option | |
| public boolean | |
| private boolean | |
| public void | process(OptionHelper
a helper to provide access to the environment helper, String the option to be processed option)Processes an option that either does not need an argument, or which contains an argument within it, following a separator. |
| public void | process(OptionHelper
a helper to provide access to the environment helper, String the option to be processed option, String the value to associate with the option, or a default value
to be used if the option does not otherwise take an argument. arg)Processes an option by updating the environment via a helper object. |
| private static void | showHelp(Log
the log log, Option.the kind of options to select kindWrites the "command line help" for given kind of option to the log. |
| public static Option | |
| public static Option[] |