AntPatternMatcher matcher = new AntPatternMatcher(); matcher.setPathSeparator("."); if (!config.getApiExcludePatterns().isEmpty()) { Iterator<TypeDeclaration> typeDeclarationIt = typeDeclarations.iterator(); while (typeDeclarationIt.hasNext()) { TypeDeclaration typeDeclaration = typeDeclarationIt.next(); boolean exclude = false; if (config.getApiExcludePatterns().contains(typeDeclaration.getQualifiedName())) { exclude = true; debug("%s was explicitly excluded.", typeDeclaration.getQualifiedName()); for (String excludePattern : config.getApiExcludePatterns()) { if (matcher.match(excludePattern, typeDeclaration.getQualifiedName())) { exclude = true;