Class JavaCompilerSupport
java.lang.Object
gov.nist.secauto.metaschema.databind.codegen.JavaCompilerSupport
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRootModule(String entry) voidaddToClassPath(String entry) voidaddToModulePath(String entry) Generate and compile Java classes.voidsetLogger(JavaCompilerSupport.Logger logger)
-
Constructor Details
-
JavaCompilerSupport
-
-
Method Details
-
getClassPath
-
getModulePath
-
getRootModuleNames
-
addToClassPath
-
addToModulePath
-
addRootModule
-
setLogger
-
generateCompilerOptions
-
compile
public JavaCompilerSupport.CompilationResult compile(@NonNull List<Path> classFiles) throws IOException Generate and compile Java classes.- Parameters:
classFiles- the files to compile- 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
-