@Test void testCompile() { Assertions.assertNotNull((LinearPattern.compile("unit"))); Throwable linearPatternException = Assertions.assertThrows(LinearPatternException.class, () -> LinearPattern.compile(StringUtils.EMPTY)); Assertions.assertEquals("Cannot compile the pattern", linearPatternException.getMessage()); }
public static LinearPattern compile(String pattern) { return COMPILER.compile(pattern); }
LinearPattern { public static LinearPattern compile(String pattern) { return COMPILER.compile(pattern); } }
LinearPattern { public static LinearPattern compile(String pattern) { return COMPILER.compile(pattern); } LinearPattern(String patternSource, List<LinearPatternElement> element); }
LinearPattern { public static LinearPattern compile(String pattern) { return COMPILER.compile(pattern); } LinearPattern(String patternSource, List<LinearPatternElement> element); LinearPatternResult match(Snippet source); LinearPatternResult match(SourceStream source); LinearPatternResult match(SourceStream source, Function<SynchronizedSource, Object> expressionMatcher); String getPatternSource(); static LinearPattern compile(String pattern); }
LinearPattern { public static LinearPattern compile(String pattern) { return COMPILER.compile(pattern); } LinearPattern(String patternSource, List<LinearPatternElement> element); LinearPatternResult match(Snippet source); LinearPatternResult match(SourceStream source); LinearPatternResult match(SourceStream source, Function<SynchronizedSource, Object> expressionMatcher); String getPatternSource(); static LinearPattern compile(String pattern);  }