public abstract class ParsingJavaPackageFinder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ParsingJavaPackageFinder.PackagePathResolver
Convenience class containing logic for dealing with Java package directory structures and
package paths.
|
static class |
ParsingJavaPackageFinder.PathComponentCountOrder |
Constructor and Description |
---|
ParsingJavaPackageFinder() |
Modifier and Type | Method and Description |
---|---|
static JavaPackageFinder |
preparse(JavaFileParser javaFileParser,
ProjectFilesystem projectFilesystem,
com.google.common.collect.ImmutableSet<Path> filesToParse,
JavaPackageFinder fallbackPackageFinder)
Creates a hybrid
JavaPackageFinder which will resolve packages for the selected paths
based on parsing the source files and use the fallbackPackageFinder for everything else. |
public static JavaPackageFinder preparse(JavaFileParser javaFileParser, ProjectFilesystem projectFilesystem, com.google.common.collect.ImmutableSet<Path> filesToParse, JavaPackageFinder fallbackPackageFinder)
JavaPackageFinder
which will resolve packages for the selected paths
based on parsing the source files and use the fallbackPackageFinder for everything else.javaFileParser
- parser to read Java sources with.projectFilesystem
- filesystem.filesToParse
- set of files to parse.fallbackPackageFinder
- package finder to use when the package can't be inferred from
source.