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 |
|---|---|
| protected static enum | JavaCompiler.
Control how the compiler's latter phases (attr, flow, desugar, generate) are connected. |
| protected static enum | |
| public static class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| protected Analyzer | analyzer
The analyzer |
| protected Annotate | annotate
The annotation annotator. |
| protected boolean | annotationProcessingOccurred
Flag set if any annotation processing occurred. |
| protected Attr | attr
The attributor. |
| protected Check | chk
The attributor. |
| public List | closeables
A list of items to be closed when the compilation is complete. |
| protected JavaCompiler. | compilePolicy
The policy for the order in which to perform the compilation |
| public static final Context. | compilerKey
The context key for the compiler. |
| protected CompileStates | |
| protected final Name | completionFailureName
Force a completion failure on this name |
| protected Context | |
| protected DeferredCompletionFailureHandler | |
| private static final JavaCompiler. | |
| pack-priv Log. | |
| pack-priv HashMap | |
| protected boolean | devVerbose
Switch: should we debug ignored exceptions |
| pack-priv JCDiagnostic. | diagFactory
Factory for creating diagnostic objects |
| protected JCDiagnostic. | diags
The diagnostics factory |
| public long | |
| protected Enter | enter
The module for the symbol table entry phases. |
| private boolean | |
| protected boolean | explicitAnnotationProcessingRequested
Switch: is annotation processing requested explicitly via CompilationTask.setProcessors? |
| protected JavaFileManager | fileManager
Access to file objects. |
| protected ClassFinder | finder
The class finder. |
| protected Flow | flow
The flow analyzer. |
| protected Gen | gen
The module for code generation. |
| private boolean | hasBeenUsed
Track when the JavaCompiler has been used to compile something. |
| protected boolean | implicitSourceFilesRead
Flag set if any implicit source files read. |
| protected JavaCompiler. | implicitSourcePolicy
The policy for what to do with implicitly read source files |
| protected Set | inputFiles
The set of currently compiled inputfiles, needed to ensure we don't accidentally overwrite an input file when -s is set. |
| protected JNIWriter | jniWriter
The native header writer. |
| public boolean | |
| public boolean | lineDebugInfo
Generate code with the LineNumberTable attribute for debugging |
| protected LintMapper | lintMapper
The Lint mapper. |
| public Log | log
The log to be used for error reporting. |
| protected Lower | lower
The syntactic sugar desweetener. |
| protected TreeMaker | make
The tree factory module. |
| protected ModuleFinder | moduleFinder
The module finder |
| protected Modules | modules
The modules visitor |
| protected Names | names
The name table. |
| protected Options | options
Command line options. |
| protected ParserFactory | parserFactory
Factory for parsers. |
| private JavacProcessingEnvironment | procEnvImpl
Object to handle annotation processing. |
| pack-priv boolean | processAnnotations
Set to true to enable skeleton annotation processing code. |
| protected boolean | processPcks
Switch: should we (annotation) process packages as well |
| protected ClassReader | reader
The class reader. |
| private List | rootClasses
The list of classes explicitly supplied on the command line for compilation. |
| public CompileStates. | shouldStopPolicyIfError
Policy of how far to continue compilation after errors have occurred. |
| public CompileStates. | shouldStopPolicyIfNoError
Policy of how far to continue compilation when no errors have occurred. |
| private final Symbol | silentFail
Used by the resolveBinaryNameOrIdent to say that the given type cannot be found, and that an error has already been produced about that. |
| protected Source | source
The language version. |
| protected final Symbol. | sourceCompleter
SourceCompleter that delegates to the readSourceFile method of this class. |
| public boolean | sourceOutput
Emit plain Java source files rather than class files. |
| private long | |
| protected Symtab | syms
The symbol table. |
| protected MultiTaskListener | taskListener
Broadcasting listener for progress events |
| public Todo | todo
A queue of all as yet unattributed classes. |
| protected TransTypes | transTypes
The type eraser. |
| protected Types | types
Type utilities. |
| public boolean | verbose
Verbose output. |
| public boolean | verboseCompilePolicy
Report activity related to compilePolicy |
| private static ResourceBundle | |
| private static final String | |
| protected WarningAnalyzer | warningAnalyzer
The warning analyzer. |
| protected EnumSet | werrorLint
Switch: treat lint warnings in the specified |
| protected boolean | werrorNonLint
Switch: treat non-lint warnings as errors. |
| protected ClassWriter | writer
The class writer. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Queue | Returns: a list of environments for attribute classes.Attribute a list of parse trees, such as found on the "todo" list. |
| public Env | |
| protected void | |
| public void | |
| public void | |
| public void | compile(Collection<JavaFileObject>
file objects to be compiled sourceFileObjects, Collection<String> class names to process for annotations classnames, Iterable<? extends Processor> user provided annotation processors to bypass
discovery, processors, Collection<String> null means that no processors were providedadditional root modules to be used during
module resolution. addModules)Main method: compile a list of files, return all compiled classes |
| public boolean | continueAfterProcessAnnotations()
Returns true iff the compilation will continue after annotation processing is done. |
| public Queue | Returns: a list containing the classes to be generatedPrepare attributed parse trees, in conjunction with their attribution contexts, for source or code generation. |
| protected void | desugar(final Env<AttrContext> env, Queue<Pair<Env<AttrContext>, JCTree.
Prepare attributed parse trees, in conjunction with their attribution contexts, for source or code generation. |
| private static long | |
| public void | |
| public List | |
| public int | |
| pack-priv boolean | |
| pack-priv static boolean | |
| private Name | |
| public Queue | Returns: the list of attributed parse treesPerform dataflow checks on attributed parse trees. |
| public Queue | |
| protected void | flow(Env<AttrContext> env, Queue<Env<AttrContext>> results)
Perform dataflow checks on an attributed parse tree. |
| public static String | |
| pack-priv JavaFileObject | genCode(Env<AttrContext>
The attribution environment of the outermost class
containing this class. env, JCTree.The class definition from which code is generated. cdefGenerate code and emit a class file for a given class |
| public void | generate(Queue<Pair<Env<AttrContext>, JCTree.
Generates the source or class file for a list of classes. |
| public void | |
| pack-priv Map | |
| public List | |
| public void | initProcessAnnotations(Iterable<? extends Processor>
user provided annotation processors to bypass
discovery, processors, Collection<? extends JavaFileObject> initialFiles, Collection<String> initialClassNames)null means that no processors were providedCheck if we should process annotations. |
| public static JavaCompiler | |
| public boolean | |
| public boolean | isWerror(Lint.
Should warnings in the given lint category be treated as errors due to a |
| protected boolean | |
| private TaskEvent | |
| public void | |
| private static long | |
| protected JCTree. | parse(JavaFileObject
The name of the file from which input stream comes. filename, CharSequence The characters to be parsed. content)Parse contents of input stream. |
| private JCTree. | parse(JavaFileObject
The name of the file from which input stream comes. filename, CharSequence The characters to be parsed. content, boolean true if TaskListeners should not be notified silent)Parse contents of input stream. |
| public JCTree. | |
| public JCTree. | |
| private Name | |
| public List | |
| public List | |
| public void | |
| protected void | |
| pack-priv JavaFileObject | printSource(Env<AttrContext>
The attribution environment of the outermost class
containing this class. env, JCTree.The class definition to be printed. cdefEmit plain Java source for a class. |
| private void | |
| public void | |
| public void | processAnnotations(List<JCTree.
a list of compilation units roots,Process any annotations found in the specified compilation units. |
| private Name | |
| public CharSequence | readSource(JavaFileObject
The file name of the input stream to be opened. filename)Try to open input stream with given name. |
| private void | readSourceFile(Symbol.
The class the source file of which needs to be compiled. cCompile a source file that has been accessed by the class finder. |
| public void | readSourceFile(JCTree.
the compilation unit in which the given ClassSymbol resides,
or null if should be parsed from source tree,the ClassSymbol to complete cCompile a ClassSymbol from source, optionally using the given compilation unit as the source tree. |
| pack-priv JCTree. | |
| public void | |
| public void | |
| public Symbol | resolveBinaryNameOrIdent(String
The name to resolve name)Resolve an identifier which may be the binary name of a class or the Java name of a class or package. |
| public Symbol | resolveBinaryNameOrIdent(Symbol.
The module in which the search should be performed msym,The name to resolve name)Resolve an identifier which may be the binary name of a class or the Java name of a class or package. |
| public Symbol | resolveIdent(Symbol.
The module in which the search should be performed msym,The identifier to resolve name)Resolve an identifier. |
| public void | |
| protected boolean | |
| protected final <T> Queue | |
| protected final <T> List | |
| private boolean | |
| public static String | |
| private static String | |
| public Queue | Returns: the list of attributed parse treesCheck for various things to warn about. |
| public Queue | |
| protected void | warn(Env<AttrContext> env, Queue<Env<AttrContext>> results)
Check for various things to warn about in an attributed parse tree. |
| public int |