Class RegexpPatternMatcher

  • All Implemented Interfaces:
    PatternMatcher

    public final class RegexpPatternMatcher
    extends AbstractPatternMatcher
    A pattern matcher matching input using regular expressions.
    See Also:
    Pattern
    • Constructor Detail

      • RegexpPatternMatcher

        public RegexpPatternMatcher()
    • Method Detail

      • newMatcher

        protected Matcher newMatcher​(java.lang.String expression)
        Description copied from class: AbstractPatternMatcher
        Returns an instance of the implementation specific matcher.
        Specified by:
        newMatcher in class AbstractPatternMatcher
        Parameters:
        expression - the string to be matched.
        Returns:
        the instance of the related matcher. Never null.