org.apache.cocoon.components.language.programming.java
Class Jikes
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
- All Implemented Interfaces:
- Poolable, Recyclable, Component, LogEnabled, Serviceable, LanguageCompiler
public class Jikes
- extends AbstractJavaCompiler
- implements Serviceable
This class wraps IBM's Jikes Java compiler
NOTE: inspired by the Apache Jasper implementation.
- Since:
- 2.0
- Version:
- CVS $Id: Jikes.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Stefano Mazzocchi
Constructor Summary |
Jikes()
|
Jikes
public Jikes()
service
public void service(ServiceManager serviceManager)
throws ServiceException
- Set the
ServiceManager
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
toStringArray
protected String[] toStringArray(List arguments)
- Copy arguments to a string array
- Overrides:
toStringArray
in class AbstractJavaCompiler
- Parameters:
arguments
- The compiler arguments
- Returns:
- A string array containing compilation arguments
compile
public boolean compile()
throws IOException
- Execute the compiler
- Specified by:
compile
in interface LanguageCompiler
- Throws:
IOException
- If an error occurs during compilation
parseStream
protected List parseStream(BufferedReader input)
throws IOException
- Parse the compiler error stream to produce a list of
CompilerError
s
- Specified by:
parseStream
in class AbstractJavaCompiler
- Parameters:
input
- The error stream
- Returns:
- The list of compiler error messages
- Throws:
IOException
- If an error occurs during message collection
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.