org.apache.axis.components.compiler

Class Javac

public class Javac extends AbstractCompiler

This class wraps the Sun's Javac Compiler.

Since: 2.0

Author: Davanum Srinivas Stefano Mazzocchi

Field Summary
static StringCLASSIC_CLASS
protected static Loglog
static StringMODERN_CLASS
Constructor Summary
Javac()
Method Summary
booleancompile()
Compile a source file yielding a loadable class file.
protected ListparseClassicStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerErrors
protected ListparseModernStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerErrors
protected ListparseStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerErrors
StringtoString()

Field Detail

CLASSIC_CLASS

public static final String CLASSIC_CLASS

log

protected static Log log

MODERN_CLASS

public static final String MODERN_CLASS

Constructor Detail

Javac

public Javac()

Method Detail

compile

public boolean compile()
Compile a source file yielding a loadable class file.

Throws: IOException If an error occurs during compilation

parseClassicStream

protected List parseClassicStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerErrors

Parameters: input The error stream

Returns: The list of compiler error messages

Throws: IOException If an error occurs during message collection

parseModernStream

protected List parseModernStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerErrors

Parameters: input The error stream

Returns: The list of compiler error messages

Throws: IOException If an error occurs during message collection

parseStream

protected List parseStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerErrors

Parameters: input The error stream

Returns: The list of compiler error messages

Throws: IOException If an error occurs during message collection

toString

public String toString()
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.