/** * Match the specified candidate against the configured patterns. * @param signatureString "java.lang.Object.hashCode" style signature * @return whether the candidate matches at least one of the specified patterns */ protected boolean matchesPattern(String signatureString) { for (int i = 0; i < this.patterns.length; i++) { boolean matched = matches(signatureString, i); if (matched) { for (int j = 0; j < this.excludedPatterns.length; j++) { boolean excluded = matchesExclusion(signatureString, j); if (excluded) { return false; } } return true; } } return false; }
/** * Match the specified candidate against the configured patterns. * @param signatureString "java.lang.Object.hashCode" style signature * @return whether the candidate matches at least one of the specified patterns */ protected boolean matchesPattern(String signatureString) { for (int i = 0; i < this.patterns.length; i++) { boolean matched = matches(signatureString, i); if (matched) { for (int j = 0; j < this.excludedPatterns.length; j++) { boolean excluded = matchesExclusion(signatureString, j); if (excluded) { return false; } } return true; } } return false; }
/** * Match the specified candidate against the configured patterns. * @param signatureString "java.lang.Object.hashCode" style signature * @return whether the candidate matches at least one of the specified patterns */ protected boolean matchesPattern(String signatureString) { for (int i = 0; i < this.patterns.length; i++) { boolean matched = matches(signatureString, i); if (matched) { for (int j = 0; j < this.excludedPatterns.length; j++) { boolean excluded = matchesExclusion(signatureString, j); if (excluded) { return false; } } return true; } } return false; }