Factory methods for creating rule violation matchers.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static RuleViolationMatcher |
newMatcher(java.util.regex.Pattern pFilesPattern)Create a new RuleViolationMatcher that matches any rule violation anywhere in files
with names that match a pattern. |
|
static RuleViolationMatcher |
newMatcher(java.util.regex.Pattern pFilesPattern, java.util.BitSet pLineNumbers)Create a new RuleViolationMatcher that matches any rule violation in certain line
numbers in files with names that match a pattern. |
|
static RuleViolationMatcher |
newMatcher(java.util.regex.Pattern pFilesPattern, java.util.regex.Pattern pRulesPattern)Create a new RuleViolationMatcher that matches violations of rules with names that
match a pattern anywhere in files with names that match another pattern. |
|
static RuleViolationMatcher |
newMatcher(java.util.regex.Pattern pFilesPattern, java.util.BitSet pLineNumbers, java.util.regex.Pattern pRulesPattern)Create a new RuleViolationMatcher that matches violations of a rule in a certain
line number range in a file. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a new RuleViolationMatcher that matches any rule violation anywhere in files
with names that match a pattern.
pFilesPattern - The file name pattern to match.RuleViolationMatcher. Create a new RuleViolationMatcher that matches any rule violation in certain line
numbers in files with names that match a pattern.
pFilesPattern - The file name pattern to match.pLineNumbers - The line numbers to match.RuleViolationMatcher. Create a new RuleViolationMatcher that matches violations of rules with names that
match a pattern anywhere in files with names that match another pattern.
pFilesPattern - The file name pattern to match.pRulesPattern - The rule name pattern to match.RuleViolationMatcher. Create a new RuleViolationMatcher that matches violations of a rule in a certain
line number range in a file.
pFilesPattern - The file name pattern to match.pLineNumbers - The line numbers to match.pRulesPattern - The rule name pattern to match.RuleViolationMatcher.