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 JavacTool | |
| private final ProgramDescriptor | |
| private final Map | |
| private final JavaFileManager | |
| private final RelevantJavacOptions | |
| private final PrintWriter | |
| private final JavacFileManager |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv byte[] | Returns: the byte code of the compiled class ornull
if no source file was found for the given namethe name of the class to be compiled. name)Determines a source file from the given class name and compiles it. |
| pack-priv void | |
| private static ModuleFinder | |
| private void | enableNativeAccess(ModuleLayer.
Grants native access to modules selected using the --enable-native-access command line option. |
| pack-priv Set | |
| pack-priv ProgramDescriptor | |
| pack-priv String | |
| pack-priv ClassLoader | Returns: class loader object able to find and load the desired classthe class loader to be used as the parent loader parent, String the fully-qualified name of the application class to load mainClassName)Create a new class load for the main entry-point class. |
| compiler | back to summary |
|---|---|
| private final JavacTool compiler | |
| descriptor | back to summary |
|---|---|
| private final ProgramDescriptor descriptor | |
| inMemoryClasses | back to summary |
|---|---|
| private final Map<String, byte[]> inMemoryClasses | |
| memoryFileManager | back to summary |
|---|---|
| private final JavaFileManager memoryFileManager | |
| options | back to summary |
|---|---|
| private final RelevantJavacOptions options | |
| out | back to summary |
|---|---|
| private final PrintWriter out | |
| standardFileManager | back to summary |
|---|---|
| private final JavacFileManager standardFileManager | |
| MemoryContext | back to summary |
|---|---|
| pack-priv MemoryContext(PrintWriter out, ProgramDescriptor descriptor, RelevantJavacOptions options) throws Fault | |
| compileJavaFileByName | back to summary |
|---|---|
| pack-priv byte[] compileJavaFileByName(String name) Determines a source file from the given class name and compiles it. Any messages generated during compilation will be written to the stream provided when this object was created.
This method is passed a reference to an instance of
| |
| compileProgram | back to summary |
|---|---|
| pack-priv void compileProgram() throws Fault Compiles a source file, placing the class files in a map in memory. Any messages generated during compilation will be written to the stream provided when this object was created.
| |
| createModuleFinderFromModulePath | back to summary |
|---|---|
| private static ModuleFinder createModuleFinderFromModulePath() | |
| enableNativeAccess | back to summary |
|---|---|
| private void enableNativeAccess(ModuleLayer. Grants native access to modules selected using the --enable-native-access command line option.
| |
| getNamesOfCompiledClasses | back to summary |
|---|---|
| pack-priv Set | |
| getProgramDescriptor | back to summary |
|---|---|
| pack-priv ProgramDescriptor getProgramDescriptor() | |
| getSourceFileAsString | back to summary |
|---|---|
| pack-priv String getSourceFileAsString() | |
| newClassLoaderFor | back to summary |
|---|---|
| pack-priv ClassLoader newClassLoaderFor(ClassLoader parent, String mainClassName) throws Fault Create a new class load for the main entry-point class.
| |