|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler
org.apache.cocoon.components.language.programming.java.Javac
public class Javac
This class wraps the Sun's Javac Compiler.
Field Summary |
---|
Fields inherited from class org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler |
---|
classpath, compilerComplianceLevel, destDir, encoding, errors, file, srcDir |
Constructor Summary | |
---|---|
Javac()
|
Method Summary | |
---|---|
boolean |
compile()
Compile a source file yielding a loadable class file. |
protected List |
parseStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerError s |
String |
toString()
|
Methods inherited from class org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler |
---|
fillArguments, getErrors, recycle, setClasspath, setCompilerComplianceLevel, setDestination, setEncoding, setFile, setSource, toStringArray |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Javac()
Method Detail |
---|
public boolean compile() throws IOException
null
if it is the platform's default encoding
IOException
- If an error occurs during compilationprotected List parseStream(BufferedReader input) throws IOException
CompilerError
s
parseStream
in class AbstractJavaCompiler
input
- The error stream
IOException
- If an error occurs during message collectionpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |