| 115 | } |
| 116 | |
| 117 | @Override |
| 118 | public Item item(final QueryContext qc, final InputInfo ii) throws QueryException { |
| 119 | final Item item1 = exprs[0].atomItem(qc, info); |
| 120 | if(item1 == Empty.VALUE) return Empty.VALUE; |
| 121 | final Item item2 = exprs[1].atomItem(qc, info); |
| 122 | if(item2 == Empty.VALUE) return Empty.VALUE; |
| 123 | return calcOpt != null ? calcOpt.eval(item1, item2, info) : calc.eval(item1, item2, info); |
| 124 | } |
| 125 | |
| 126 | @Override |
| 127 | public Expr simplifyFor(final Simplify mode, final CompileContext cc) throws QueryException { |