Class MatchPattern


  • public class MatchPattern
    extends Object

    Describes a match target for SelectorUtils.

    Significantly more efficient than using strings, since re-evaluation and re-tokenizing is avoided.

    Author:
    Kristian Rosenvold
    • Method Detail

      • matchPath

        public boolean matchPath​(String str,
                                 boolean isCaseSensitive)
      • matchPatternStart

        public boolean matchPatternStart​(String str,
                                         boolean isCaseSensitive)
      • getTokenizedPathString

        public String[] getTokenizedPathString()
      • getTokenizedPathChars

        public char[][] getTokenizedPathChars()
      • startsWith

        public boolean startsWith​(String string)