Implemented PatternMatcher.matches() and PatternMattcher.doesNotMatch()