Class AbstractPatternMatcher

    • Constructor Detail

      • AbstractPatternMatcher

        public AbstractPatternMatcher​(java.lang.String name)
        Create a new instance of a pattern matcher
        Parameters:
        name - the name of the pattern matcher. Never null.
    • Method Detail

      • getMatcher

        public Matcher getMatcher​(java.lang.String expression)
        Description copied from interface: PatternMatcher
        Return the matcher for the given expression.
        Specified by:
        getMatcher in interface PatternMatcher
        Parameters:
        expression - the expression to be matched. Cannot be null ?
        Returns:
        the matcher instance for the given expression. Never null.
      • newMatcher

        protected abstract Matcher newMatcher​(java.lang.String expression)
        Returns an instance of the implementation specific matcher.
        Parameters:
        expression - the string to be matched.
        Returns:
        the instance of the related matcher. Never null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object