- 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 booleanmatches(String s)To check if the string is matched.Stringprocess(String s)To process the string.
-
-
-
Method Detail
-
matches
public boolean matches(String s)
To 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
public String process(String s)
To process the string.- Specified by:
processin interfaceIMatchHandle- Parameters:
s- The string to be processed.- Returns:
- The processed string.
-
-