@Test public void parseLimit() throws Exception { String expression = "limit(0, 10)"; LimitParserAdapter limitParser = new LimitParserAdapter(); PageNode pageNode = limitParser.parse(expression); Assert.assertNotNull(pageNode); LOG.debug("startIndex = {}, querySize = {})", pageNode.getStart(), pageNode.getSize()); Assert.assertEquals(Long.valueOf(0L), pageNode.getStart()); Assert.assertEquals(Long.valueOf(10L), pageNode.getSize()); }
public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } }
LimitParserAdapter { public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } } }
LimitParserAdapter { public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } }  }
LimitParserAdapter { public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } }  PageNode parse(String limitExpression); }
LimitParserAdapter { public PageNode parse(String limitExpression) { try { return createLimitParser(limitExpression).parse(); } catch (ParseException | Error e) { throw new LimitParsingException(e); } }  PageNode parse(String limitExpression);  }