Example usage for Java jdk.nashorn.internal.runtime.options Options fields, constructors, methods, implement or subclass
The text is from its open source code.
Options(final String resource) Constructor Options will use System.err as the output stream for any errors | |
Options(final String resource, final PrintWriter err) Constructor |
void | displayHelp(final IllegalArgumentException e) Display context sensitive help |
void | displayHelp(final boolean extended) Display full help |
boolean | getBoolean(final String key) Return an option as a boolean |
List | getFiles() Return the JavaScript files passed to the program |
void | process(final String[] args) Processes the arguments and stores their information. |
void | set(final String key, final Option> option) Set an option, overwriting an existing state if one exists |
void | set(final String key, final boolean option) Set an option as a boolean value, overwriting an existing state if one exists |
void | set(final String key, final String option) Set an option as a String value, overwriting an existing state if one exists |