Interface PatternMatcher

All Known Implementing Classes:
AbstractPatternMatcher, ExactOrRegexpPatternMatcher, ExactPatternMatcher, GlobPatternMatcher, RegexpPatternMatcher

public interface PatternMatcher
Interface for a pattern matcher.

The pattern matcher is the main abstraction regarding the matching of an expression. Implementation may vary depending on the expression syntax handling that is desired.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Any expression string: '*'
    static final String
    'exact' pattern matcher name
    static final String
    pattern matcher name 'exactOrRegexp'
    static final String
    pattern matcher 'glob'
    static final String
    pattern matcher name 'regexp'
  • Method Summary

    Modifier and Type
    Method
    Description
    getMatcher(String expression)
    Return the matcher for the given expression.
    return the name of this pattern matcher
  • Field Details

  • Method Details

    • getMatcher

      Matcher getMatcher(String expression)
      Return the matcher for the given expression.
      Parameters:
      expression - the expression to be matched. Cannot be null ?
      Returns:
      the matcher instance for the given expression. Never null.
    • getName

      String getName()
      return the name of this pattern matcher
      Returns:
      the name of this pattern matcher. Never null.
      See Also: