public final class RegularExpressionRule extends Object implements InclusionRuleWithRegularExpression
Constructor and Description |
---|
RegularExpressionRule(Pattern patternInclude,
Pattern patternExclude)
Set include and exclude patterns.
|
RegularExpressionRule(String patternInclude,
String patternExclude)
Set include and exclude patterns.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Pattern |
getExclusionPattern()
Returns the regular expression for the exclusion rule.
|
Pattern |
getInclusionPattern()
Returns the regular expression for the inclusion rule.
|
int |
hashCode() |
boolean |
test(String text) |
String |
toString() |
public RegularExpressionRule(Pattern patternInclude, Pattern patternExclude)
patternInclude
- Inclusion pattern. If null, includes everything.patternExclude
- Exclusion pattern. If null, excludes nothing.public Pattern getExclusionPattern()
InclusionRuleWithRegularExpression
getExclusionPattern
in interface InclusionRuleWithRegularExpression
public Pattern getInclusionPattern()
InclusionRuleWithRegularExpression
getInclusionPattern
in interface InclusionRuleWithRegularExpression
Copyright © 2000-2025 Sualeh Fatehi. All rights reserved.