|
||||||||||
| 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.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 CompilerErrors |
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 ServiceableServiceExceptionprotected String[] toStringArray(List arguments)
toStringArray in class AbstractJavaCompilerarguments - The compiler arguments
public boolean compile()
throws IOException
compile in interface LanguageCompilerIOException - If an error occurs during compilation
protected List parseStream(BufferedReader input)
throws IOException
CompilerErrors
parseStream in class AbstractJavaCompilerinput - 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 | |||||||||