Package org.apache.rat.mp
Class Regex
- All Implemented Interfaces:
IHeaderMatcher.Builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the regex expression.Methods inherited from class org.apache.rat.configuration.builders.RegexBuilder
build, toString
Methods inherited from class org.apache.rat.configuration.builders.AbstractBuilder
getId, hasId, setId
-
Constructor Details
-
Regex
public Regex()
-
-
Method Details
-
setExpr
Description copied from class:RegexBuilder
Sets the regex expression. This method compiles the string into a pattern and may throw any exception thrown by thePattern.compile(String)
method.- Overrides:
setExpr
in classRegexBuilder
- Parameters:
exp
- the expression as a string.- Returns:
- this builder for chaining.
- See Also:
Pattern.compile(String)
-
set
-