Evaluates a function. @param func function to evaluate @throws QueryException query exception
(final StaticFunc func)
| 280 | * @throws QueryException query exception |
| 281 | */ |
| 282 | private void eval(final StaticFunc func) throws QueryException { |
| 283 | current = func; |
| 284 | |
| 285 | try(QueryContext qc = job.pushJob(new QueryContext(ctx))) { |
| 286 | qc.parse(input, file.path()); |
| 287 | qc.assign(func); |
| 288 | // ignore results |
| 289 | for(final Iter iter = qc.iter(); qc.next(iter) != null;); |
| 290 | } finally { |
| 291 | job.popJob(); |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | /** |
| 296 | * Returns a token representation of the measured time. |