/** * Checks if provided class package is on the exclude list * * @param classPackageName name of class package * @return false if class package is on the {@link #excludePackages} list */ protected boolean checkExcludePackages(String classPackageName) { if(excludePackages != null && excludePackages.length > 0) { WildcardHelper wildcardHelper = new WildcardHelper(); //we really don't care about the results, just the boolean Map<String, String> matchMap = new HashMap<>(); for(String packageExclude : excludePackages) { int[] packagePattern = wildcardHelper.compilePattern(packageExclude); if(wildcardHelper.match(matchMap, classPackageName, packagePattern)) { return false; } } } return true; }
int[] compiledPattern = wildcard.compilePattern(pattern); HashMap<String,String> matchedPatterns = new HashMap<String, String>(); boolean matches = wildcard.match(matchedPatterns, methodCopy, compiledPattern); int[] compiledPattern = wildcard.compilePattern(pattern); HashMap<String,String> matchedPatterns = new HashMap<String, String>(); boolean matches = wildcard.match(matchedPatterns, methodCopy, compiledPattern);