boolean prefix(String pre) { if (!tail.startsWith(pre)) return false; tail = skip(pre.length()); return true; }
boolean prefix(String pre) { if (!tail.startsWith(pre)) return false; tail = skip(pre.length()); return true; }
boolean prefix(String pre) { if (!tail.startsWith(pre)) return false; tail = skip(pre.length()); return true; }
private Node doOr() throws Exception { tail = skip(1); boolean val = false; if (!tail.startsWith("(")) error(EMPTY); Or or = new Or(); do { or.children.add(doQuery()); } while (tail.startsWith("(")); return or; }
private Node doAnd() throws Exception { tail = skip(1); boolean val = true; if (!tail.startsWith("(")) error(EMPTY); And and = new And(); do { and.children.add(doQuery()); } while (tail.startsWith("(")); return and; }
private Node doNot() throws Exception { tail = skip(1); if (!tail.startsWith("(")) error(SUBEXPR); return new Not(doQuery()); }
private Node doOr() throws Exception { tail = skip(1); boolean val = false; if (!tail.startsWith("(")) error(EMPTY); Or or = new Or(); do { or.children.add(doQuery()); } while (tail.startsWith("(")); return or; }
private Node doAnd() throws Exception { tail = skip(1); boolean val = true; if (!tail.startsWith("(")) error(EMPTY); And and = new And(); do { and.children.add(doQuery()); } while (tail.startsWith("(")); return and; }
private Node doAnd() throws Exception { tail = skip(1); boolean val = true; if (!tail.startsWith("(")) error(EMPTY); And and = new And(); do { and.children.add(doQuery()); } while (tail.startsWith("(")); return and; }
private Node doNot() throws Exception { tail = skip(1); if (!tail.startsWith("(")) error(SUBEXPR); return new Not(doQuery()); }
private Node doOr() throws Exception { tail = skip(1); boolean val = false; if (!tail.startsWith("(")) error(EMPTY); Or or = new Or(); do { or.children.add(doQuery()); } while (tail.startsWith("(")); return or; }
private Node doNot() throws Exception { tail = skip(1); if (!tail.startsWith("(")) error(SUBEXPR); return new Not(doQuery()); }