Method
test
(final QueryContext qc, final InputInfo ii, final long pos)
Source from the content-addressed store, hash-verified
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | public boolean test(final QueryContext qc, final InputInfo ii, final long pos) |
| 43 | throws QueryException { |
| 44 | for(final Expr expr : exprs) { |
| 45 | final Iter iter = expr.atomIter(qc, info); |
| 46 | for(Item item; (item = qc.next(iter)) != null;) { |
| 47 | if(item.string(info).length > 0) return true; |
| 48 | } |
| 49 | } |
| 50 | return false; |
| 51 | } |
| 52 | |
| 53 | @Override |
| 54 | public Expr optimize(final CompileContext cc) throws QueryException { |
Callers
nothing calls this directly
Tested by
no test coverage detected