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()
InclusionRuleWithRegularExpressiongetExclusionPattern in interface InclusionRuleWithRegularExpressionpublic Pattern getInclusionPattern()
InclusionRuleWithRegularExpressiongetInclusionPattern in interface InclusionRuleWithRegularExpressionCopyright © 2000-2024 Sualeh Fatehi. All rights reserved.