Package de.ikor.sip.foundation.mvnplugin
Class ImportAnalyzer
- java.lang.Object
-
- de.ikor.sip.foundation.mvnplugin.ImportAnalyzer
-
class ImportAnalyzer extends Object
Collects banned import matches from a single source file.
-
-
Constructor Summary
Constructors Constructor Description ImportAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Optional<BannedImportRecords>checkFile(ParsedJavaFile sourceFile, BannedImportGroups groups)Collects all imports that are banned within the given source file.
-
-
-
Method Detail
-
checkFile
Optional<BannedImportRecords> checkFile(ParsedJavaFile sourceFile, BannedImportGroups groups)
Collects all imports that are banned within the given source file.- Parameters:
sourceFile- The parsed file to check for banned imports..groups- The groups of banned imports to check the file against. From all groups, the one with the most specific base pattern match is chosen.- Returns:
- a
BannedImportRecordsholds information about the found matches. Returns an empty optional if no matches were found.
-
-