use of org.apache.qpid.server.filter.NamedExpression in project qpid-broker-j by apache.
the class ConfiguredObjectFilterParser method selectClauseElement.
public final Map<String, Expression> selectClauseElement() throws ParseException {
String name = null;
Expression expr;
expr = addExpression();
switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
case AS:
jj_consume_token(AS);
name = identifier();
break;
default:
;
}
if (name == null) {
name = (expr instanceof NamedExpression) ? ((NamedExpression) expr).getName() : "";
}
{
if (true)
return Collections.singletonMap(name, expr);
}
throw new Error("Missing return statement in function");
}
Aggregations