|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompilationResult
The compilation result allows clients of the java compiler to check for error messages, warnings (if not disabled by the options) and allows to access the compiled classes.
Method Summary | |
---|---|
boolean |
didCompile()
Was a compilation required or were all classes recent? |
java.util.List<CompilerMessage> |
getErrors()
Return a list of error messages that occured during compilation. |
java.util.List<CompilerMessage> |
getWarnings()
Return a list of warnings that occured during compilation. |
java.lang.Class<?> |
loadCompiledClass(java.lang.String className)
Try to load the compiled class. |
Method Detail |
---|
java.util.List<CompilerMessage> getErrors()
null
is returned.
null
.java.util.List<CompilerMessage> getWarnings()
null
is returned.
null
.boolean didCompile()
true>/code> if classes were compiled.
java.lang.Class<?> loadCompiledClass(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- If the class could not be found
or compilation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |