Class Jikes
java.lang.Object
org.apache.axis.components.compiler.AbstractCompiler
org.apache.axis.components.compiler.Jikes
- All Implemented Interfaces:
Compiler
This class wraps IBM's Jikes Java compiler
NOTE: inspired by the Apache Jasper implementation.
- Since:
- 2.0
- Author:
- Davanum Srinivas, Stefano Mazzocchi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
compile()
Execute the compilerprotected List
parseStream
(BufferedReader input) Parse the compiler error stream to produce a list ofCompilerError
stoString()
protected String[]
toStringArray
(List arguments) Copy arguments to a string arrayMethods inherited from class org.apache.axis.components.compiler.AbstractCompiler
addFile, fillArguments, getErrors, setClasspath, setDestination, setEncoding, setSource
-
Field Details
-
log
protected static org.apache.commons.logging.Log log
-
-
Constructor Details
-
Jikes
public Jikes()
-
-
Method Details
-
toStringArray
Copy arguments to a string array- Overrides:
toStringArray
in classAbstractCompiler
- Parameters:
arguments
- The compiler arguments- Returns:
- A string array containing compilation arguments
-
compile
Execute the compiler- Throws:
IOException
-
parseStream
Parse the compiler error stream to produce a list ofCompilerError
s- Specified by:
parseStream
in classAbstractCompiler
- Parameters:
input
- The error stream- Returns:
- The list of compiler error messages
- Throws:
IOException
- If an error occurs during message collection
-
toString
-