/************************************************************************
[47] GroupByClause ::= "group" "by" GroupingSpecList
[48] GroupingSpecList ::= GroupingSpec ("," GroupingSpec)*
************************************************************************/
final public Grouping parseGroupByClause() throws ParseException, XQueryException {
final Grouping grouping = new Grouping();
GroupingSpec spec = null;
currentToken = jj_consume_token(GroupBy);
//GroupingSpecList
spec = parseGroupingSpec();
grouping.addGroupingKey(spec);
label_12: while(true) {
switch(jj_nt.kind) {
case Comma:
;
break;
default:
jj_la1[76] = jj_gen;
break label_12;
}
currentToken = jj_consume_token(Comma);
spec = parseGroupingSpec();
grouping.addGroupingKey(spec);
}
locate(grouping);
{
if(true)
return grouping;