Class JavaCompilerSupport
java.lang.Object
gov.nist.secauto.metaschema.databind.codegen.JavaCompilerSupport
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRootModule
(String entry) void
addToClassPath
(String entry) void
addToModulePath
(String entry) Generate and compile Java classes.
-
Constructor Details
-
JavaCompilerSupport
-
-
Method Details
-
getClassPath
-
getModulePath
-
getRootModuleNames
-
addToClassPath
-
addToModulePath
-
addRootModule
-
generateCompilerOptions
-
compile
public JavaCompilerSupport.CompilationResult compile(@NonNull List<Path> classFiles, @Nullable Writer compileOut) throws IOException Generate and compile Java classes.- Parameters:
classFiles
- the files to compilecompileOut
- a Writer for additional output from the compiler; use System.err if null- Returns:
- information about the generated classes
- Throws:
IOException
- if an error occurred while compiling the classesIllegalArgumentException
- if any of the options are invalid, or if any of the given compilation units are of other kind thanJavaFileObject.Kind.SOURCE
-