java.lang.Object
com.ibm.jvm.dtfjview.tools.utils.RegExprMatchHandle
- All Implemented Interfaces:
IMatchHandle
This class handles the matching tasks when regular expressions are used.
Note, the regular expression is defined by Javadoc of class java.util.regex.Pattern.
Also, it always enables the dotall mode (java.util.regex.Pattern.DOTALL).
-
Constructor Summary
ConstructorDescriptionRegExprMatchHandle
(String[] regExList) RegExprMatchHandle
(String[] regExList, boolean ignoreCase) RegExprMatchHandle
(String[] regExList, boolean ignoreCase, boolean negated) -
Method Summary
-
Constructor Details
-
RegExprMatchHandle
-
RegExprMatchHandle
-
RegExprMatchHandle
-
-
Method Details
-
matches
Description copied from interface:IMatchHandle
To check if the string is matched.- Specified by:
matches
in interfaceIMatchHandle
- Parameters:
s
- The string to be checked.- Returns:
true
if the string is matched;false
otherwise.
-
process
Description copied from interface:IMatchHandle
To process the string.- Specified by:
process
in interfaceIMatchHandle
- Parameters:
s
- The string to be processed.- Returns:
- The processed string.
-