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 boolean
compile()
Execute the compilerprotected java.util.List
parseStream(java.io.BufferedReader input)
Parse the compiler error stream to produce a list ofCompilerError
sjava.lang.String
toString()
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:
toStringArray
in classAbstractCompiler
- Parameters:
arguments
- The compiler arguments- Returns:
- A string array containing compilation arguments
-
compile
public boolean compile() throws java.io.IOException
Execute the compiler- Throws:
java.io.IOException
-
parseStream
protected java.util.List parseStream(java.io.BufferedReader input) throws java.io.IOException
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:
java.io.IOException
- If an error occurs during message collection
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-