Class Jikes
- java.lang.Object
-
- org.apache.axis.components.compiler.AbstractCompiler
-
- org.apache.axis.components.compiler.Jikes
-
- All Implemented Interfaces:
Compiler
public class Jikes extends AbstractCompiler
This class wraps IBM's Jikes Java compiler NOTE: inspired by the Apache Jasper implementation.- Since:
- 2.0
- Author:
- Davanum Srinivas, Stefano Mazzocchi
-
-
Constructor Summary
Constructors Constructor Description Jikes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompile()Execute the compilerprotected java.util.ListparseStream(java.io.BufferedReader input)Parse the compiler error stream to produce a list ofCompilerErrorsjava.lang.StringtoString()protected java.lang.String[]toStringArray(java.util.List arguments)Copy arguments to a string array-
Methods inherited from class org.apache.axis.components.compiler.AbstractCompiler
addFile, fillArguments, getErrors, setClasspath, setDestination, setEncoding, setSource
-
-
-
-
Method Detail
-
toStringArray
protected java.lang.String[] toStringArray(java.util.List arguments)
Copy arguments to a string array- Overrides:
toStringArrayin classAbstractCompiler- Parameters:
arguments- The compiler arguments- Returns:
- A string array containing compilation arguments
-
compile
public boolean compile() throws java.io.IOExceptionExecute the compiler- Throws:
java.io.IOException
-
parseStream
protected java.util.List parseStream(java.io.BufferedReader input) throws java.io.IOExceptionParse the compiler error stream to produce a list ofCompilerErrors- Specified by:
parseStreamin classAbstractCompiler- Parameters:
input- The error stream- Returns:
- The list of compiler error messages
- Throws:
java.io.IOException- If an error occurs during message collection
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-