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 class | ClassFinder.
Used for bad class definition files, such as bad .class files or for .java files with unexpected package or class names. |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Annotate | |
| private boolean | cacheCompletionFailure
Switch: cache completion failures unless -XDdev is used |
| private final Symbol. | |
| protected static final Context. | classFinderKey
The context key for the class finder. |
| pack-priv final Name | completionFailureName
Force a completion failure on this name |
| protected JavaFileObject | currentClassFile
The path name of the class file currently being read. |
| protected JavaFileManager. | |
| protected Symbol | currentOwner
The class or method currently being read. |
| pack-priv final DeferredCompletionFailureHandler | |
| private final Dependencies | dependencies
Dependency tracker |
| pack-priv JCDiagnostic. | diagFactory
Factory for diagnostics |
| private final JavaFileManager | fileManager
Access to files |
| private final JRTIndex | jrtIndex
Use direct access to the JRTIndex to access the temporary replacement for the info that used to be in ct.sym. |
| pack-priv final Log | log
The log to use for verbose output |
| pack-priv final Names | names
The name table. |
| private boolean | |
| protected boolean | preferSource
Switch: prefer source files instead of newer when both source and class are available |
| private final Profile | profile
The currently selected profile. |
| pack-priv ClassReader | |
| public Symbol. | sourceCompleter
Can be reassigned from outside: the completer to be used for ".java" files. |
| private Map | |
| pack-priv Symtab | syms
The symbol table. |
| private final Symbol. | thisCompleter
Completer that delegates to the complete-method of this class. |
| protected boolean | userPathsFirst
Switch: Search classpath and sourcepath for classes before the bootclasspath |
| pack-priv boolean | verbose
Switch: verbose output. |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private Symbol. | |
| private void | |
| private void | completeEnclosing(Symbol.
Tries to complete lexically enclosing classes if c looks like a nested class. |
| private void | |
| protected void | |
| pack-priv void | fillIn(Symbol.
Fill in definition of class `c' from corresponding class or source file. |
| private void | |
| private void | |
| public Symbol. | |
| protected EnumSet | |
| pack-priv long | |
| protected void | includeClassFile(Symbol.
Include class corresponding to given class file in package, unless (1) we already have one the same kind (.class or .java), or (2) we have one of the other kind, and the given class file is older. |
| public static ClassFinder | |
| pack-priv Iterable | list(JavaFileManager.
|
| public Symbol. | loadClass(Symbol.
Load a toplevel class with given fully qualified name The class is entered into `classes' only if load was successful. |
| private Symbol. | newCompletionFailure(Symbol.
Static factory for CompletionFailure objects. |
| protected JavaFileObject | preferredFileObject(JavaFileObject a, JavaFileObject b)
Implement policy to choose to derive information from a source file or a class file when both are present. |
| private void | |
| private void | |
| private void | scanUserPaths(Symbol.
Scans class path and source path for files in given package. |
| annotate | back to summary |
|---|---|
| private final Annotate annotate | |
| cacheCompletionFailure | back to summary |
|---|---|
| private boolean cacheCompletionFailure Switch: cache completion failures unless -XDdev is used | |
| cachedCompletionFailure | back to summary |
|---|---|
| private final Symbol. | |
| classFinderKey | back to summary |
|---|---|
| protected static final Context. The context key for the class finder. | |
| completionFailureName | back to summary |
|---|---|
| pack-priv final Name completionFailureName Force a completion failure on this name | |
| currentClassFile | back to summary |
|---|---|
| protected JavaFileObject currentClassFile The path name of the class file currently being read. | |
| currentLoc | back to summary |
|---|---|
| protected JavaFileManager. | |
| currentOwner | back to summary |
|---|---|
| protected Symbol currentOwner The class or method currently being read. | |
| dcfh | back to summary |
|---|---|
| pack-priv final DeferredCompletionFailureHandler dcfh | |
| dependencies | back to summary |
|---|---|
| private final Dependencies dependencies Dependency tracker | |
| diagFactory | back to summary |
|---|---|
| pack-priv JCDiagnostic. Factory for diagnostics | |
| fileManager | back to summary |
|---|---|
| private final JavaFileManager fileManager Access to files | |
| jrtIndex | back to summary |
|---|---|
| private final JRTIndex jrtIndex Use direct access to the JRTIndex to access the temporary replacement for the info that used to be in ct.sym. In time, this will go away and be replaced by the module system. | |
| log | back to summary |
|---|---|
| pack-priv final Log log The log to use for verbose output | |
| names | back to summary |
|---|---|
| pack-priv final Names names The name table. | |
| preferCurrent | back to summary |
|---|---|
| private boolean preferCurrent | |
| preferSource | back to summary |
|---|---|
| protected boolean preferSource Switch: prefer source files instead of newer when both source and class are available | |
| profile | back to summary |
|---|---|
| private final Profile profile The currently selected profile. | |
| reader | back to summary |
|---|---|
| pack-priv ClassReader reader | |
| sourceCompleter | back to summary |
|---|---|
| public Symbol. Can be reassigned from outside: the completer to be used for ".java" files. If this remains unassigned ".java" files will not be loaded. | |
| supplementaryFlags | back to summary |
|---|---|
| private Map<Symbol. | |
| syms | back to summary |
|---|---|
| pack-priv Symtab syms The symbol table. | |
| thisCompleter | back to summary |
|---|---|
| private final Symbol. Completer that delegates to the complete-method of this class. | |
| userPathsFirst | back to summary |
|---|---|
| protected boolean userPathsFirst Switch: Search classpath and sourcepath for classes before the bootclasspath | |
| verbose | back to summary |
|---|---|
| pack-priv boolean verbose Switch: verbose output. | |
| verbosePath | back to summary |
|---|---|
| private boolean verbosePath | |
| ClassFinder | back to summary |
|---|---|
| protected ClassFinder(Context context) Construct a new class finder.
| |
| classFileNotFound | back to summary |
|---|---|
| private Symbol. | |
| complete | back to summary |
|---|---|
| private void complete(Symbol sym) throws CompletionFailure Completion for classes to be loaded. Before a class is loaded we make sure its enclosing class (if any) is loaded. | |
| completeEnclosing | back to summary |
|---|---|
| private void completeEnclosing(Symbol. Tries to complete lexically enclosing classes if c looks like a nested class. This is similar to completeOwners but handles the situation when a nested class is accessed directly as it is possible with the Tree API or javax.lang.model.*. | |
| completeOwners | back to summary |
|---|---|
| private void completeOwners(Symbol o) complete up through the enclosing package. | |
| extraFileActions | back to summary |
|---|---|
| protected void extraFileActions(Symbol. this is used to support javadoc | |
| fillIn | back to summary |
|---|---|
| pack-priv void fillIn(Symbol. Fill in definition of class `c' from corresponding class or source file. | |
| fillIn | back to summary |
|---|---|
| private void fillIn(Symbol. Load directory of package into members scope. | |
| fillIn | back to summary |
|---|---|
| private void fillIn(Symbol. | |
| getCompleter | back to summary |
|---|---|
| public Symbol. | |
| getPackageFileKinds | back to summary |
|---|---|
| protected EnumSet specifies types of files to be read when filling in a package symbol | |
| getSupplementaryFlags | back to summary |
|---|---|
| pack-priv long getSupplementaryFlags(Symbol. Returns any extra flags for a class symbol. This information used to be provided using private annotations in the class file in ct.sym; in time, this information will be available from the module system. | |
| includeClassFile | back to summary |
|---|---|
| protected void includeClassFile(Symbol. Include class corresponding to given class file in package, unless (1) we already have one the same kind (.class or .java), or (2) we have one of the other kind, and the given class file is older. | |
| instance | back to summary |
|---|---|
| public static ClassFinder instance(Context context) Get the ClassFinder instance for this invocation. | |
| list | back to summary |
|---|---|
| pack-priv Iterable | |
| loadClass | back to summary |
|---|---|
| public Symbol. Load a toplevel class with given fully qualified name The class is entered into `classes' only if load was successful. | |
| newCompletionFailure | back to summary |
|---|---|
| private Symbol. Static factory for CompletionFailure objects. In practice, only one can be used at a time, so we share one to reduce the expense of allocating new exception objects. | |
| preferredFileObject | back to summary |
|---|---|
| protected JavaFileObject preferredFileObject(JavaFileObject a, JavaFileObject b) Implement policy to choose to derive information from a source file or a class file when both are present. May be overridden by subclasses. | |
| scanModulePaths | back to summary |
|---|---|
| private void scanModulePaths(Symbol. | |
| scanPlatformPath | back to summary |
|---|---|
| private void scanPlatformPath(Symbol. Scans platform class path for files in given package. | |
| scanUserPaths | back to summary |
|---|---|
| private void scanUserPaths(Symbol. Scans class path and source path for files in given package. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | BadClassFile(Symbol.
|
| Modifier and Type | Method and Description |
|---|---|
| private static JCDiagnostic | createBadClassFileDiagnostic(JavaFileObject file, JCDiagnostic diag, JCDiagnostic.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| BadClassFile | back to summary |
|---|---|
| public BadClassFile(Symbol. | |
| createBadClassFileDiagnostic | back to summary |
|---|---|
| private static JCDiagnostic createBadClassFileDiagnostic(JavaFileObject file, JCDiagnostic diag, JCDiagnostic. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | BadEnclosingMethodAttr(Symbol.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| BadEnclosingMethodAttr | back to summary |
|---|---|
| public BadEnclosingMethodAttr(Symbol. | |