Interface PathMatcher

All Known Implementing Classes:
RegexPathMatcher, StringPathMatcher, WildCardPathMatcher

public interface PathMatcher
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(Location location, List<PathMatcher> remaining)
    Does this path matcher prevent a match, or do any of its successors prevent a match
    static boolean
    matchesTheRest(Location location, List<PathMatcher> remaining)
    Work out whether the rest of the location meets the rest of the remaining matchers
    of(Object value)
    Factory method - convert an object into its path matcher
  • Method Details

    • matches

      boolean matches(Location location, List<PathMatcher> remaining)
      Does this path matcher prevent a match, or do any of its successors prevent a match
      Parameters:
      location - the location
      remaining - the remaining PathMatchers
      Returns:
      true if there's a match
    • of

      static PathMatcher of(Object value)
      Factory method - convert an object into its path matcher
      Parameters:
      value - the value to convert
      Returns:
      a path matcher or IllegalArgumentException if not known
    • matchesTheRest

      static boolean matchesTheRest(Location location, List<PathMatcher> remaining)
      Work out whether the rest of the location meets the rest of the remaining matchers
      Parameters:
      location - the location so far
      remaining - the remaining matchers
      Returns:
      true if matches the remainder