| Modifier and Type | Class and Description |
|---|---|
static class |
Compilation.Status
The status of a compilation.
|
| Modifier and Type | Method and Description |
|---|---|
Compiler |
compiler()
The compiler.
|
com.google.common.collect.ImmutableList<Diagnostic<? extends JavaFileObject>> |
diagnostics()
All diagnostics reported during compilation.
|
com.google.common.collect.ImmutableList<Diagnostic<? extends JavaFileObject>> |
errors()
Errors reported during compilation.
|
Optional<JavaFileObject> |
generatedFile(JavaFileManager.Location location,
String path)
Returns the file at
path if one was generated. |
Optional<JavaFileObject> |
generatedFile(JavaFileManager.Location location,
String packageName,
String fileName)
Returns the file with name
fileName in package packageName if one was
generated. |
com.google.common.collect.ImmutableList<JavaFileObject> |
generatedFiles()
Files generated during compilation.
|
Optional<JavaFileObject> |
generatedSourceFile(String qualifiedName)
Returns the source file for the type with a given qualified name (no ".java" extension) if one
was generated.
|
com.google.common.collect.ImmutableList<JavaFileObject> |
generatedSourceFiles()
Source files generated during compilation.
|
com.google.common.collect.ImmutableList<Diagnostic<? extends JavaFileObject>> |
notes()
Notes reported during compilation.
|
com.google.common.collect.ImmutableList<JavaFileObject> |
sourceFiles()
The source files compiled.
|
Compilation.Status |
status()
The status of the compilation.
|
String |
toString() |
com.google.common.collect.ImmutableList<Diagnostic<? extends JavaFileObject>> |
warnings()
Warnings (including mandatory warnings) reported during compilation.
|
public Compiler compiler()
public com.google.common.collect.ImmutableList<JavaFileObject> sourceFiles()
public Compilation.Status status()
public com.google.common.collect.ImmutableList<Diagnostic<? extends JavaFileObject>> diagnostics()
errors(),
warnings(),
notes()public com.google.common.collect.ImmutableList<Diagnostic<? extends JavaFileObject>> errors()
public com.google.common.collect.ImmutableList<Diagnostic<? extends JavaFileObject>> warnings()
public com.google.common.collect.ImmutableList<Diagnostic<? extends JavaFileObject>> notes()
public com.google.common.collect.ImmutableList<JavaFileObject> generatedFiles()
IllegalStateException - for failed compilations, since the state
of the generated files is undefined in that casepublic com.google.common.collect.ImmutableList<JavaFileObject> generatedSourceFiles()
IllegalStateException - for failed compilations, since the state
of the generated files is undefined in that casepublic Optional<JavaFileObject> generatedFile(JavaFileManager.Location location, String path)
path if one was generated.
For example:
Optional<JavaFileObject> fooClassFile =
compilation.generatedFile(CLASS_OUTPUT, "com/google/myapp/Foo.class");
IllegalStateException - for failed compilations, since the state
of the generated files is undefined in that casepublic Optional<JavaFileObject> generatedFile(JavaFileManager.Location location, String packageName, String fileName)
fileName in package packageName if one was
generated.
For example:
Optional<JavaFileObject> fooClassFile =
compilation.generatedFile(CLASS_OUTPUT, "com.google.myapp", "Foo.class");
IllegalStateException - for failed compilations, since the state
of the generated files is undefined in that casepublic Optional<JavaFileObject> generatedSourceFile(String qualifiedName)
For example:
Optional<JavaFileObject> fooSourceFile =
compilation.generatedSourceFile("com.google.myapp.Foo");
IllegalStateException - for failed compilations, since the state
of the generated files is undefined in that caseCopyright © 2013–2022. All rights reserved.