|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The minimum interface that a compiler must meet to be used by DrJava.
Method Summary | |
void |
addToBootClassPath(File s)
This method allows us to set the JSR14 collections path across a class loader. |
CompilerError[] |
compile(File[] sourceRoots,
File[] files)
Compile the given files. |
CompilerError[] |
compile(File sourceRoot,
File[] files)
Compile the given files. |
String |
getName()
Returns the name of this compiler, appropriate to show to the user. |
boolean |
isAvailable()
Indicates whether this compiler is actually available. |
void |
setAllowAssertions(boolean allow)
Sets whether to allow assertions in Java 1.4. |
void |
setExtraClassPath(String extraClassPath)
Allows us to set the extra classpath for the compilers without referencing the config object in a loaded class file. |
String |
toString()
Should return info about compiler, at least including name. |
Method Detail |
public CompilerError[] compile(File sourceRoot, File[] files)
files
- Source files to compile.sourceRoot
- Source root directory, the base of the package structure.public CompilerError[] compile(File[] sourceRoots, File[] files)
files
- Source files to compile.sourceRoots
- Array of source root directories, the base of
the package structure for all files to compile.public boolean isAvailable()
compile(java.io.File, java.io.File[])
method
should not fail due to class not being found.public String getName()
public String toString()
toString
in class Object
public void setExtraClassPath(String extraClassPath)
public void setAllowAssertions(boolean allow)
public void addToBootClassPath(File s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |