org.apache.axis.components.compiler

Class Javac

Implemented Interfaces:
Compiler

public class Javac
extends AbstractCompiler

This class wraps the Sun's Javac Compiler.

Authors:
Davanum Srinivas
Stefano Mazzocchi

Since:
2.0

Field Summary

static String
CLASSIC_CLASS
static String
MODERN_CLASS
protected static Log
log

Fields inherited from class org.apache.axis.components.compiler.AbstractCompiler

classpath, destDir, encoding, errors, fileList, srcDir

Constructor Summary

Javac()

Method Summary

boolean
compile()
Compile a source file yielding a loadable class file.
protected List
parseClassicStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerErrors
protected List
parseModernStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerErrors
protected List
parseStream(BufferedReader input)
Parse the compiler error stream to produce a list of CompilerErrors
String
toString()

Methods inherited from class org.apache.axis.components.compiler.AbstractCompiler

addFile, fillArguments, getErrors, parseStream, setClasspath, setDestination, setEncoding, setSource, toStringArray

Field Details

CLASSIC_CLASS

public static final String CLASSIC_CLASS


MODERN_CLASS

public static final String MODERN_CLASS


log

protected static Log log

Constructor Details

Javac

public Javac()

Method Details

compile

public boolean compile()
            throws IOException
Compile a source file yielding a loadable class file.
Specified by:
compile in interface Compiler


parseClassicStream

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

Parameters:
input - The error stream

Returns:
The list of compiler error messages


parseModernStream

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

Parameters:
input - The error stream

Returns:
The list of compiler error messages


parseStream

protected List parseStream(BufferedReader input)
            throws IOException
Parse the compiler error stream to produce a list of CompilerErrors
Overrides:
parseStream in interface AbstractCompiler

Parameters:
input - The error stream

Returns:
The list of compiler error messages


toString

public String toString()


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.