Class RegexBuilder
java.lang.Object
org.apache.rat.configuration.builders.AbstractBuilder
org.apache.rat.configuration.builders.RegexBuilder
- All Implemented Interfaces:
IHeaderMatcher.Builder
A builder for the regex matcher.
-
Constructor Details
-
RegexBuilder
public RegexBuilder()
-
-
Method Details
-
setExpr
Sets the regex expression. This method compiles the string into a pattern and may throw any exception thrown by thePattern.compile(String)
method.- Parameters:
exp
- the expression as a string.- Returns:
- this builder for chaining.
- See Also:
Pattern.compile(String)
-
build
Description copied from interface:IHeaderMatcher.Builder
Build the IHeaderMatcher.- Returns:
- a new IHeaderMatcher.
-
toString
- Overrides:
toString
in classAbstractBuilder
-