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
ConstructorsConstructorDescriptionRegExprMatchHandle(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:IMatchHandleTo check if the string is matched.- Specified by:
matchesin interfaceIMatchHandle- Parameters:
s- The string to be checked.- Returns:
trueif the string is matched;falseotherwise.
-
process
Description copied from interface:IMatchHandleTo process the string.- Specified by:
processin interfaceIMatchHandle- Parameters:
s- The string to be processed.- Returns:
- The processed string.
-