Class TrailingAsteriskMatcher

All Implemented Interfaces:
IMatcher

public class TrailingAsteriskMatcher extends NameMatcher
Matcher for simple patterns ending with an asterisk, e.g. "Makefile.*"
  • Constructor Details

    • TrailingAsteriskMatcher

      TrailingAsteriskMatcher(String pattern, Character pathSeparator, boolean dirOnly)
  • Method Details

    • matches

      public boolean matches(String segment, int startIncl, int endExcl)
      Matches only part of given string
      Specified by:
      matches in interface IMatcher
      Overrides:
      matches in class NameMatcher
      Parameters:
      segment - string which is not null, but might be empty
      startIncl - start index, inclusive
      endExcl - end index, exclusive
      Returns:
      true if this matcher pattern matches given string