- java.lang.Object
-
- com.ibm.jvm.dtfjview.tools.utils.MatchHandle
-
- All Implemented Interfaces:
IMatchHandle
public class MatchHandle extends Object implements IMatchHandle
This class checks if a line contains some strings.
-
-
Constructor Summary
Constructors Constructor Description MatchHandle(String[] matchStringList, boolean ignoreCase)
MatchHandle(String[] matchStringList, boolean ignoreCase, boolean negated, boolean isFixedString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(String s)
To check if the string is matched.String
process(String s)
To process the string.
-
-
-
Method Detail
-
matches
public boolean matches(String s)
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
public String process(String s)
To process the string.- Specified by:
process
in interfaceIMatchHandle
- Parameters:
s
- The string to be processed.- Returns:
- The processed string.
-
-