Add the ability to add compiler options to be used during parsing, analysis, and bytecode generation.
public JShell.Builder compilerOptions(String... options)
Adds compiler options. These additional options will be used on parsing, analysis, and code generation calls to the compiler. Options which interfere with results are not supported and have undefined effects on JShell's operation.
Parameters:
options - the addition options for compiler invocations
Returns:
the Builder instance (for use in chained initialization)
public JShell.Builder compilerOptions(String... options)
Adds compiler options. These additional options will be used on parsing, analysis, and code generation calls to the compiler. Options which interfere with results are not supported and have undefined effects on JShell's operation.
Parameters:
options - the addition options for compiler invocations
Returns:
the Builder instance (for use in chained initialization)