public class PackageImplicitIncludesFinder extends Object
Modifier and Type | Method and Description |
---|---|
Optional<ImplicitInclude> |
findIncludeForBuildFile(Path packagePath)
Find the file (if any) that should be included implicitly for a given build file path
|
static PackageImplicitIncludesFinder |
fromConfiguration(com.google.common.collect.ImmutableMap<String,ImplicitInclude> packageToInclude)
Create a
PackageImplicitIncludesFinder from configuration in .buckconfig |
public static PackageImplicitIncludesFinder fromConfiguration(com.google.common.collect.ImmutableMap<String,ImplicitInclude> packageToInclude)
PackageImplicitIncludesFinder
from configuration in .buckconfigpackageToInclude
- A mapping of package paths to file that should be includedPackageImplicitIncludesFinder
instancepublic Optional<ImplicitInclude> findIncludeForBuildFile(@Nullable Path packagePath)
packagePath
- The path to a package relative to the cell root.