Class RegExprMatchHandle

java.lang.Object
com.ibm.jvm.dtfjview.tools.utils.RegExprMatchHandle
All Implemented Interfaces:
IMatchHandle

public class RegExprMatchHandle extends Object implements 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 Details

    • RegExprMatchHandle

      public RegExprMatchHandle(String[] regExList, boolean ignoreCase)
    • RegExprMatchHandle

      public RegExprMatchHandle(String[] regExList)
    • RegExprMatchHandle

      public RegExprMatchHandle(String[] regExList, boolean ignoreCase, boolean negated)
  • Method Details

    • matches

      public boolean matches(String s)
      Description copied from interface: IMatchHandle
      To check if the string is matched.

      Specified by:
      matches in interface IMatchHandle
      Parameters:
      s - The string to be checked.

      Returns:
      true if the string is matched; false otherwise.
    • process

      public String process(String s)
      Description copied from interface: IMatchHandle
      To process the string.

      Specified by:
      process in interface IMatchHandle
      Parameters:
      s - The string to be processed.

      Returns:
      The processed string.