/** * Collect all GroupSymbols for this from clause. * @param groups Groups to add to */ public void collectGroups(Collection<GroupSymbol> groups) { if(this.leftClause != null) { this.leftClause.collectGroups(groups); } if(this.rightClause != null) { this.rightClause.collectGroups(groups); } }
/** * Collect all GroupSymbols for this from clause. * @param groups Groups to add to */ public void collectGroups(Collection<GroupSymbol> groups) { if(this.leftClause != null) { this.leftClause.collectGroups(groups); } if(this.rightClause != null) { this.rightClause.collectGroups(groups); } }
/** * Collect all GroupSymbols for this from clause. * @param groups Groups to add to */ public void collectGroups(Collection<GroupSymbol> groups) { if(this.leftClause != null) { this.leftClause.collectGroups(groups); } if(this.rightClause != null) { this.rightClause.collectGroups(groups); } }
/** * Returns an ordered list of the groups in all sub-clauses. * @return List of {@link GroupSymbol} */ public List<GroupSymbol> getGroups() { List<GroupSymbol> groups = new ArrayList<GroupSymbol>(); if(clauses != null) { for(int i=0; i<clauses.size(); i++) { FromClause clause = clauses.get(i); clause.collectGroups(groups); } } return groups; }
/** * Returns an ordered list of the groups in all sub-clauses. * @return List of {@link GroupSymbol} */ public List<GroupSymbol> getGroups() { List<GroupSymbol> groups = new ArrayList<GroupSymbol>(); if(clauses != null) { for(int i=0; i<clauses.size(); i++) { FromClause clause = clauses.get(i); clause.collectGroups(groups); } } return groups; }
/** * Returns an ordered list of the groups in all sub-clauses. * @return List of {@link GroupSymbol} */ public List<GroupSymbol> getGroups() { List<GroupSymbol> groups = new ArrayList<GroupSymbol>(); if(clauses != null) { for(int i=0; i<clauses.size(); i++) { FromClause clause = clauses.get(i); clause.collectGroups(groups); } } return groups; }
jp.getLeftClause().collectGroups(leftGroups); jp.getRightClause().collectGroups(rightGroups);
jp.getLeftClause().collectGroups(leftGroups); jp.getRightClause().collectGroups(rightGroups);
jp.getLeftClause().collectGroups(leftGroups); jp.getRightClause().collectGroups(rightGroups);