Class Javac
java.lang.Object
org.apache.axis.components.compiler.AbstractCompiler
org.apache.axis.components.compiler.Javac
- All Implemented Interfaces:
Compiler
This class wraps the Sun's Javac Compiler.
- Since:
- 2.0
- Author:
- Davanum Srinivas, Stefano Mazzocchi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompile()Compile a source file yielding a loadable class file.protected ListparseClassicStream(BufferedReader input) Parse the compiler error stream to produce a list ofCompilerErrorsprotected ListparseModernStream(BufferedReader input) Parse the compiler error stream to produce a list ofCompilerErrorsprotected ListparseStream(BufferedReader input) Parse the compiler error stream to produce a list ofCompilerErrorstoString()Methods inherited from class org.apache.axis.components.compiler.AbstractCompiler
addFile, fillArguments, getErrors, setClasspath, setDestination, setEncoding, setSource, toStringArray
-
Field Details
-
log
protected static org.apache.commons.logging.Log log -
CLASSIC_CLASS
- See Also:
-
MODERN_CLASS
- See Also:
-
-
Constructor Details
-
Javac
public Javac()
-
-
Method Details
-
compile
Compile a source file yielding a loadable class file.- Throws:
IOException- If an error occurs during compilation
-
parseStream
Parse 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:
IOException- If an error occurs during message collection
-
parseModernStream
Parse the compiler error stream to produce a list ofCompilerErrors- Parameters:
input- The error stream- Returns:
- The list of compiler error messages
- Throws:
IOException- If an error occurs during message collection
-
parseClassicStream
Parse the compiler error stream to produce a list ofCompilerErrors- Parameters:
input- The error stream- Returns:
- The list of compiler error messages
- Throws:
IOException- If an error occurs during message collection
-
toString
-