Class BannedImportGroup


  • public final class BannedImportGroup
    extends Object
    Holds the information of what imports should be banned and from which base package.
    • Constructor Detail

      • BannedImportGroup

        public BannedImportGroup​(String basePackage,
                                 List<String> bannedImports)
    • Method Detail

      • getBasePackages

        public String getBasePackages()
      • isImportBanned

        public boolean isImportBanned​(String importName)
      • matches

        public boolean matches​(String packageName)
      • regexMatch

        public boolean regexMatch​(String pattern,
                                  String matchString)