This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Class and Description |
---|---|
public static enum | Main.
Result codes. |
Modifier and Type | Field and Description |
---|---|
pack-priv boolean | apiMode
If true, certain errors will cause an exception, such as command line arg errors, or exceptions in user provided code. |
private static final String | |
private JavaFileManager | |
public static final String | |
public Log | log
The log to use for diagnostic output. |
pack-priv String | ownName
The name of the compiler, for use in diagnostics. |
pack-priv PrintWriter | stdErr
The writer to use for diagnostic output. |
pack-priv PrintWriter | stdOut
The writer to use for normal output. |
Access | Constructor and Description |
---|---|
public | |
public | Main(String
the name of this tool name, PrintWriter a stream to which to write messages out)Construct a compiler instance. |
public | Main(String
the name of this tool name, PrintWriter a stream to which to write expected output out, PrintWriter a stream to which to write diagnostic output err)Construct a compiler instance. |
Modifier and Type | Method and Description |
---|---|
pack-priv void | apMessage(AnnotationProcessingError ex)
Print a message reporting an uncaught exception from an annotation processor. |
pack-priv void | |
public Main. | |
public Main. | |
pack-priv void | |
pack-priv void | |
pack-priv void | pluginMessage(Throwable ex)
Print a message reporting an uncaught exception from an annotation processor. |
pack-priv void | |
pack-priv void | |
pack-priv void | |
pack-priv void | |
pack-priv void | |
private boolean |
apiMode | back to summary |
---|---|
pack-priv boolean apiMode If true, certain errors will cause an exception, such as command line arg errors, or exceptions in user provided code. |
ENV_OPT_NAME | back to summary |
---|---|
private static final String ENV_OPT_NAME |
fileManager | back to summary |
---|---|
private JavaFileManager fileManager |
javacBundleName | back to summary |
---|---|
public static final String javacBundleName |
log | back to summary |
---|---|
public Log log The log to use for diagnostic output. |
ownName | back to summary |
---|---|
pack-priv String ownName The name of the compiler, for use in diagnostics. |
stdErr | back to summary |
---|---|
pack-priv PrintWriter stdErr The writer to use for diagnostic output. |
stdOut | back to summary |
---|---|
pack-priv PrintWriter stdOut The writer to use for normal output. |
Main | back to summary |
---|---|
public Main(String name) Construct a compiler instance.
|
Main | back to summary |
---|---|
public Main(String name, PrintWriter out) Construct a compiler instance.
|
Main | back to summary |
---|---|
public Main(String name, PrintWriter out, PrintWriter err) Construct a compiler instance.
|
apMessage | back to summary |
---|---|
pack-priv void apMessage(AnnotationProcessingError ex) Print a message reporting an uncaught exception from an annotation processor. |
bugMessage | back to summary |
---|---|
pack-priv void bugMessage(Throwable ex) Print a message reporting an internal error. |
compile | back to summary |
---|---|
public Main. Programmatic interface for main function. |
compile | back to summary |
---|---|
public Main. Internal version of compile, allowing context to be provided. Note that the context needs to have a file manager set up. |
feMessage | back to summary |
---|---|
pack-priv void feMessage(Throwable ex, Options options) Print a message reporting a fatal error. |
ioMessage | back to summary |
---|---|
pack-priv void ioMessage(Throwable ex) Print a message reporting an input/output error. |
pluginMessage | back to summary |
---|---|
pack-priv void pluginMessage(Throwable ex) Print a message reporting an uncaught exception from an annotation processor. |
printArgumentsToFile | back to summary |
---|---|
pack-priv void printArgumentsToFile(String... params) |
reportDiag | back to summary |
---|---|
pack-priv void reportDiag(JCDiagnostic. Report a usage error. |
reportHelper | back to summary |
---|---|
pack-priv void reportHelper(JCDiagnostic. Report helper. |
resourceMessage | back to summary |
---|---|
pack-priv void resourceMessage(Throwable ex) Print a message reporting an out-of-resources error. |
showClass | back to summary |
---|---|
pack-priv void showClass(String className) Display the location and checksum of a class. |
twoClassLoadersInUse | back to summary |
---|---|
private boolean twoClassLoadersInUse(IllegalAccessError iae) |
Modifier and Type | Field and Description |
---|---|
public static final Main. | |
public static final Main. | |
public static final Main. | |
public final int | |
public static final Main. | |
public static final Main. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public boolean | |
public static Main. | |
public static Main. |
ABNORMAL | back to summary |
---|---|
public static final Main. |
CMDERR | back to summary |
---|---|
public static final Main. |
ERROR | back to summary |
---|---|
public static final Main. |
exitCode | back to summary |
---|---|
public final int exitCode |
OK | back to summary |
---|---|
public static final Main. |
SYSERR | back to summary |
---|---|
public static final Main. |
Result | back to summary |
---|---|
private Result(int exitCode) |
isOK | back to summary |
---|---|
public boolean isOK() |
valueOf | back to summary |
---|---|
public static Main. |
values | back to summary |
---|---|
public static Main. |