Tests the conditions and returns the expression to evaluate. @param qc query context @return case expression @throws QueryException query exception
(final QueryContext qc)
| 210 | * @throws QueryException query exception |
| 211 | */ |
| 212 | private Expr expr(final QueryContext qc) throws QueryException { |
| 213 | final Item item = cond.atomItem(qc, info); |
| 214 | for(final SwitchGroup group : groups) { |
| 215 | if(group.match(item, qc)) return group.rtrn(); |
| 216 | } |
| 217 | throw Util.notExpected(); |
| 218 | } |
| 219 | |
| 220 | @Override |
| 221 | public boolean vacuous() { |