Constructor and Description |
---|
IjSourceRootSimplifier(JavaPackageFinder javaPackageFinder) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableListMultimap<Path,IjFolder> |
simplify(int simplificationLimit,
Iterable<IjFolder> folders,
Path moduleLocation,
com.google.common.collect.ImmutableSet<Path> traversalBoundaryPaths)
Merges
IjFolder s of the same type and package prefix. |
public IjSourceRootSimplifier(JavaPackageFinder javaPackageFinder)
public com.google.common.collect.ImmutableListMultimap<Path,IjFolder> simplify(int simplificationLimit, Iterable<IjFolder> folders, Path moduleLocation, com.google.common.collect.ImmutableSet<Path> traversalBoundaryPaths)
IjFolder
s of the same type and package prefix.simplificationLimit
- if a path has this many segments it will not be simplified further.folders
- set of IjFolder
s to simplify.moduleLocation
- location of the current moduletraversalBoundaryPaths
- contains a list of locations of modules in the current projectIjFolder
s.