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
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() |
addFile, fillArguments, getErrors, setClasspath, setDestination, setEncoding, setSource, toStringArrayprotected 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
CompilerErrorsparseStream in class AbstractCompilerinput - The error streamIOException - If an error occurs during message collectionprotected List parseModernStream(BufferedReader input) throws IOException
CompilerErrorsinput - The error streamIOException - If an error occurs during message collectionprotected List parseClassicStream(BufferedReader input) throws IOException
CompilerErrorsinput - The error streamIOException - If an error occurs during message collectionCopyright © The Apache Software Foundation. All Rights Reserved.