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 TypeMethodDescriptionboolean
compile()
Compile a source file yielding a loadable class file.protected List
parseClassicStream
(BufferedReader input) Parse the compiler error stream to produce a list ofCompilerError
sprotected List
parseModernStream
(BufferedReader input) Parse the compiler error stream to produce a list ofCompilerError
sprotected List
parseStream
(BufferedReader input) Parse the compiler error stream to produce a list ofCompilerError
stoString()
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 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
-
parseModernStream
Parse the compiler error stream to produce a list ofCompilerError
s- 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 ofCompilerError
s- Parameters:
input
- The error stream- Returns:
- The list of compiler error messages
- Throws:
IOException
- If an error occurs during message collection
-
toString
-