@Test(expected = Selector.SelectorParseException.class) public void testParsesSingleQuoteInContains() { QueryParser.parse("p:contains(One \" One)"); }
public static <T> Evaluator<T> parse(String query) { try { QueryParser<T> p = new QueryParser<>(query); return p.parse(); } catch (IllegalArgumentException e) { throw new Selector.SelectorParseException(e.getMessage()); } }
QueryParser { public static <T> Evaluator<T> parse(String query) { try { QueryParser<T> p = new QueryParser<>(query); return p.parse(); } catch (IllegalArgumentException e) { throw new Selector.SelectorParseException(e.getMessage()); } } }
QueryParser { public static <T> Evaluator<T> parse(String query) { try { QueryParser<T> p = new QueryParser<>(query); return p.parse(); } catch (IllegalArgumentException e) { throw new Selector.SelectorParseException(e.getMessage()); } } private  QueryParser(String query); }
QueryParser { public static <T> Evaluator<T> parse(String query) { try { QueryParser<T> p = new QueryParser<>(query); return p.parse(); } catch (IllegalArgumentException e) { throw new Selector.SelectorParseException(e.getMessage()); } } private  QueryParser(String query); static Evaluator<T> parse(String query); }
QueryParser { public static <T> Evaluator<T> parse(String query) { try { QueryParser<T> p = new QueryParser<>(query); return p.parse(); } catch (IllegalArgumentException e) { throw new Selector.SelectorParseException(e.getMessage()); } } private  QueryParser(String query); static Evaluator<T> parse(String query);  }