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 | Field and Description |
|---|---|
| private final PrintWriter | out
Stream for reporting errors, such as compilation errors. |
| Access | Constructor and Description |
|---|---|
| public | SourceLauncher(PrintStream
the stream out)Creates an instance of this class, providing a stream to which to report any errors. |
| public | SourceLauncher(PrintWriter
the stream out)Creates an instance of this class, providing a stream to which to report any errors. |
| Modifier and Type | Method and Description |
|---|---|
| private Class | execute(MemoryContext
the context for the class to be executed context, String[] the arguments for the mainArgs)main methodInvokes the |
| private Path | |
| public static void | |
| private static void | |
| public Result |
| out | back to summary |
|---|---|
| private final PrintWriter out Stream for reporting errors, such as compilation errors. | |
| SourceLauncher | back to summary |
|---|---|
| public SourceLauncher(PrintStream out) Creates an instance of this class, providing a stream to which to report any errors.
| |
| SourceLauncher | back to summary |
|---|---|
| public SourceLauncher(PrintWriter out) Creates an instance of this class, providing a stream to which to report any errors.
| |
| execute | back to summary |
|---|---|
| private Class Invokes the
| |
| getFile | back to summary |
|---|---|
| private Path getFile(String[] args) throws Fault Returns the path for the filename found in the first of an array of arguments. | |
| main | back to summary |
|---|---|
| public static void main(String... args) throws Throwable Compiles a source file, and executes the main method it contains. This is normally invoked from the Java launcher, either when
the The first entry in the If any problem occurs before executing the main class, it will
be reported to the standard error stream, and the JVM will be
terminated by calling | |
| openPackageTo | back to summary |
|---|---|
| private static void openPackageTo(Module module, String packageName, Module target) | |
| run | back to summary |
|---|---|
| public Result run(String[] runtimeArgs, String[] args) throws Fault, InvocationTargetException Compiles a source file, and executes the main method it contains. The first entry in the Options for If the main method throws an exception, it will be propagated in an
| |