public class Javac extends AbstractCompiler
Modifier and Type | Field and Description |
---|---|
static String |
CLASSIC_CLASS |
protected static org.apache.commons.logging.Log |
log |
static String |
MODERN_CLASS |
Constructor and Description |
---|
Javac() |
Modifier and Type | Method and Description |
---|---|
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
CompilerError s |
protected List |
parseModernStream(BufferedReader input)
Parse the compiler error stream to produce a list of
CompilerError s |
protected List |
parseStream(BufferedReader input)
Parse the compiler error stream to produce a list of
CompilerError s |
String |
toString() |
addFile, fillArguments, getErrors, setClasspath, setDestination, setEncoding, setSource, toStringArray
protected static org.apache.commons.logging.Log log
public static final String CLASSIC_CLASS
public static final String MODERN_CLASS
public boolean compile() throws IOException
IOException
- If an error occurs during compilationprotected List parseStream(BufferedReader input) throws IOException
CompilerError
sparseStream
in class AbstractCompiler
input
- The error streamIOException
- If an error occurs during message collectionprotected List parseModernStream(BufferedReader input) throws IOException
CompilerError
sinput
- The error streamIOException
- If an error occurs during message collectionprotected List parseClassicStream(BufferedReader input) throws IOException
CompilerError
sinput
- The error streamIOException
- If an error occurs during message collectionCopyright © The Apache Software Foundation. All Rights Reserved.