Option#process, providing access to
the compilation environment.
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 class | OptionHelper.
An implementation of OptionHelper that mostly throws exceptions. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract void | |
| pack-priv abstract void | |
| public abstract String | |
| public abstract Log | |
| public abstract String | Returns: the name of the toolGet the name of the tool, such as "javac", to be used in info like -help. |
| public abstract boolean | Returns: true if the option was handled successfully, and false otherwisethe option option, String the value for the option value)Handle a file manager option. |
| public abstract void | |
| pack-priv Option. | Returns: the InvalidValueExceptionReturns a new InvalidValueException, with a localized detail message. |
| public abstract void | |
| public abstract void |
| OptionHelper | back to summary |
|---|---|
| public OptionHelper() | |
| addClassName | back to summary |
|---|---|
| pack-priv abstract void addClassName(String s) Record the name of a class for annotation processing. | |
| addFile | back to summary |
|---|---|
| pack-priv abstract void addFile(Path p) Record a file to be compiled. | |
| get | back to summary |
|---|---|
| public abstract String get(Option option) Get the current value of an option. | |
| getLog | back to summary |
|---|---|
| public abstract Log getLog() Get access to the Log for the compilation.
| |
| getOwnName | back to summary |
|---|---|
| public abstract String getOwnName() Get the name of the tool, such as "javac", to be used in info like -help.
| |
| handleFileManagerOption | back to summary |
|---|---|
| public abstract boolean handleFileManagerOption(Option option, String value) Handle a file manager option. | |
| initialize | back to summary |
|---|---|
| public abstract void initialize() Initialize this instance, as needed, if not already initialized. | |
| newInvalidValueException | back to summary |
|---|---|
| pack-priv Option. Returns a new InvalidValueException, with a localized detail message.
| |
| put | back to summary |
|---|---|
| public abstract void put(String name, String value) Set the value of an option. | |
| remove | back to summary |
|---|---|
| public abstract void remove(String name) Remove any prior value for an option.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addClassName(String s)
Implements abstract com. Record the name of a class for annotation processing. |
| public void | addFile(Path p)
Implements abstract com. Record a file to be compiled. |
| public String | get(Option option)
Implements abstract com. Get the current value of an option. |
| public Log | getLog()
Implements abstract com. Get access to the Log for the compilation. |
| public String | getOwnName()
Implements abstract com. Get the name of the tool, such as "javac", to be used in info like -help. |
| public boolean | handleFileManagerOption(Option option, String value)
Implements abstract com. Handle a file manager option. |
| public void | initialize()
Implements abstract com. Initialize this instance, as needed, if not already initialized. |
| public void | put(String name, String value)
Implements abstract com. Set the value of an option. |
| public void | remove(String name)
Implements abstract com. Remove any prior value for an option. |
| log | back to summary |
|---|---|
| private final Log log | |
| GrumpyHelper | back to summary |
|---|---|
| public GrumpyHelper(Log log) | |
| addClassName | back to summary |
|---|---|
| public void addClassName(String s) Implements abstract com. Doc from com. Record the name of a class for annotation processing.
| |
| addFile | back to summary |
|---|---|
| public void addFile(Path p) Implements abstract com. Doc from com. Record a file to be compiled.
| |
| get | back to summary |
|---|---|
| public String get(Option option) Implements abstract com. Doc from com. Get the current value of an option.
| |
| getLog | back to summary |
|---|---|
| public Log getLog() Implements abstract com. Doc from com. Get access to the Log for the compilation.
| |
| getOwnName | back to summary |
|---|---|
| public String getOwnName() Implements abstract com. Doc from com. Get the name of the tool, such as "javac", to be used in info like -help.
| |
| handleFileManagerOption | back to summary |
|---|---|
| public boolean handleFileManagerOption(Option option, String value) Implements abstract com. Doc from com. Handle a file manager option.
| |
| initialize | back to summary |
|---|---|
| public void initialize() Implements abstract com. Doc from com. Initialize this instance, as needed, if not already initialized.
| |
| put | back to summary |
|---|---|
| public void put(String name, String value) Implements abstract com. Doc from com. Set the value of an option.
| |
| remove | back to summary |
|---|---|
| public void remove(String name) Implements abstract com. Doc from com. Remove any prior value for an option.
| |