Package de.ikor.sip.foundation.mvnplugin
Class SourceTreeAnalyzer
- java.lang.Object
-
- de.ikor.sip.foundation.mvnplugin.SourceTreeAnalyzer
-
final class SourceTreeAnalyzer extends Object
Performing file analysis on a folder level by navigating through the folder tree structure.
-
-
Constructor Summary
Constructors Constructor Description SourceTreeAnalyzer(Collection<Path> srcDirs, Charset projectCharset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyzeResultanalyze(BannedImportGroups groups)Checks the files in enclosed folder for not allowed import statements.static Stream<Path>listFiles(Path root)Lists files found under given folder.
-
-
-
Constructor Detail
-
SourceTreeAnalyzer
SourceTreeAnalyzer(Collection<Path> srcDirs, Charset projectCharset)
-
-
Method Detail
-
analyze
public AnalyzeResult analyze(BannedImportGroups groups)
Checks the files in enclosed folder for not allowed import statements.- Parameters:
groups-BannedImportGroupscontains the info about banned imports and base packages from which they are banned.- Returns:
AnalyzeResultthat reports of found matches.
-
-