Class MatchHandle

  • All Implemented Interfaces:
    IMatchHandle

    public class MatchHandle
    extends Object
    implements IMatchHandle
    This class checks if a line contains some strings.

    • Constructor Detail

      • MatchHandle

        public MatchHandle​(String[] matchStringList,
                           boolean ignoreCase)
      • MatchHandle

        public MatchHandle​(String[] matchStringList,
                           boolean ignoreCase,
                           boolean negated,
                           boolean isFixedString)
    • Method Detail

      • matches

        public boolean matches​(String s)
        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)
        To process the string.

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

        Returns:
        The processed string.