|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler org.apache.cocoon.components.language.programming.java.Jikes
public class Jikes
This class wraps IBM's Jikes Java compiler NOTE: inspired by the Apache Jasper implementation.
Field Summary |
---|
Fields inherited from class org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler |
---|
classpath, compilerComplianceLevel, destDir, encoding, errors, file, srcDir |
Constructor Summary | |
---|---|
Jikes()
|
Method Summary | |
---|---|
boolean |
compile()
Execute the compiler |
protected List |
parseStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerError s |
void |
service(ServiceManager serviceManager)
Set the ServiceManager |
String |
toString()
|
protected String[] |
toStringArray(List arguments)
Copy arguments to a string array |
Methods inherited from class org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler |
---|
fillArguments, getErrors, recycle, setClasspath, setCompilerComplianceLevel, setDestination, setEncoding, setFile, setSource |
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 Jikes()
Method Detail |
---|
public void service(ServiceManager serviceManager) throws ServiceException
ServiceManager
service
in interface Serviceable
ServiceException
protected String[] toStringArray(List arguments)
toStringArray
in class AbstractJavaCompiler
arguments
- The compiler arguments
public boolean compile() throws IOException
compile
in interface LanguageCompiler
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 |