public interface CompilationResult
Modifier and Type | Method and Description |
---|---|
boolean |
didCompile()
Was a compilation required or were all classes recent?
|
List<CompilerMessage> |
getErrors()
Return a list of error messages that occured during
compilation.
|
List<CompilerMessage> |
getWarnings()
Return a list of warnings that occured during
compilation.
|
Class<?> |
loadCompiledClass(String className)
Try to load the compiled class.
|
List<CompilerMessage> getErrors()
null
is returned.null
.List<CompilerMessage> getWarnings()
null
is returned.null
.boolean didCompile()
true>/code> if classes were compiled.
Class<?> loadCompiledClass(String className) throws ClassNotFoundException
ClassNotFoundException
- If the class could not be found
or compilation failed.Copyright © 2017 The Apache Software Foundation. All rights reserved.