boolean containsAnd(SqlNode node) { try { node.accept(this); return false; } catch (AndFinder.Found e) { return true; } }
/** * Finds an aggregate. * * @param node Parse tree to search * @return First aggregate function in parse tree, or null if not found */ public SqlNode findAgg(SqlNode node) { try { node.accept(this); return null; } catch (Util.FoundOne e) { Util.swallow(e, null); return (SqlNode) e.getNode(); } }