|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaCompiler
The general compiler interface. All compilers implementing this interface should read the resources from the reader and store the java class files into the ResourceStore. The actual compilation language does not matter. But the contract is that the result of the compilation will be a class file. If possible the compiler should notify the optional CompilationProblemHandler as soon as a problem is found.
Method Summary | |
---|---|
CompilationResult |
compile(String[] pResourcePaths,
ResourceReader pReader,
ResourceStore pStore)
uses the default compiler settings and the current classloader |
CompilationResult |
compile(String[] pResourcePaths,
ResourceReader pReader,
ResourceStore pStore,
ClassLoader pClassLoader)
uses the default compiler settings |
CompilationResult |
compile(String[] pResourcePaths,
ResourceReader pReader,
ResourceStore pStore,
ClassLoader pClassLoader,
JavaCompilerSettings pSettings)
Compiles the java resources "some/path/to/MyJava.java" read through the ResourceReader and then stores the resulting classes in the ResourceStore under "some/path/to/MyJava.class". |
JavaCompilerSettings |
createDefaultSettings()
factory method to create the underlying default settings |
void |
setCompilationProblemHandler(CompilationProblemHandler pHandler)
Set the the handler that gets the notification of an error or warning as soon as this information is available from the compiler. |
Method Detail |
---|
void setCompilationProblemHandler(CompilationProblemHandler pHandler)
pHandler
- JavaCompilerSettings createDefaultSettings()
CompilationResult compile(String[] pResourcePaths, ResourceReader pReader, ResourceStore pStore)
CompilationResult compile(String[] pResourcePaths, ResourceReader pReader, ResourceStore pStore, ClassLoader pClassLoader)
CompilationResult compile(String[] pResourcePaths, ResourceReader pReader, ResourceStore pStore, ClassLoader pClassLoader, JavaCompilerSettings pSettings)
pResourcePaths
- pReader
- pStore
- pClassLoader
- pSettings
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |