@Test public void testDynamicMatcher() { String message = "hello\nend"; boolean matches = RegExpExt.dynamicMatcher(() -> ".*hello.*", Pattern.DOTALL, e -> { throw new IllegalStateException(e); }).apply(message).matches(); assertThat(matches).isTrue(); }
public static Function<String, Matcher> dynamicMatcher(Supplier<String> regExpSource, int flags, Consumer<Throwable> onError) { return dynamicMatcherInternal(regExpSource, flags, onError); }
RegExpExt { public static Function<String, Matcher> dynamicMatcher(Supplier<String> regExpSource, int flags, Consumer<Throwable> onError) { return dynamicMatcherInternal(regExpSource, flags, onError); } }
RegExpExt { public static Function<String, Matcher> dynamicMatcher(Supplier<String> regExpSource, int flags, Consumer<Throwable> onError) { return dynamicMatcherInternal(regExpSource, flags, onError); } private  RegExpExt(); }
RegExpExt { public static Function<String, Matcher> dynamicMatcher(Supplier<String> regExpSource, int flags, Consumer<Throwable> onError) { return dynamicMatcherInternal(regExpSource, flags, onError); } private  RegExpExt(); static Function<String, Matcher> dynamicMatcher(Supplier<String> regExpSource, int flags, Consumer<Throwable> onError); static Function<String, Matcher> dynamicMatcher(Supplier<String> regExpSource, String propertyName, int flags, Logger errorLogger); }
RegExpExt { public static Function<String, Matcher> dynamicMatcher(Supplier<String> regExpSource, int flags, Consumer<Throwable> onError) { return dynamicMatcherInternal(regExpSource, flags, onError); } private  RegExpExt(); static Function<String, Matcher> dynamicMatcher(Supplier<String> regExpSource, int flags, Consumer<Throwable> onError); static Function<String, Matcher> dynamicMatcher(Supplier<String> regExpSource, String propertyName, int flags, Logger errorLogger);  }