Evaluates the expression and returns an iterator on the resulting, atomized items. @param qc query context @param ii input info (can be null; required for those Value instances that have no input info) @return iterator @throws QueryException query exception
(final QueryContext qc, final InputInfo ii)
| 98 | * @throws QueryException query exception |
| 99 | */ |
| 100 | public Iter atomIter(final QueryContext qc, final InputInfo ii) throws QueryException { |
| 101 | final Iter iter = iter(qc); |
| 102 | final SeqType st = seqType(); |
| 103 | if(st.type.instanceOf(BasicType.ANY_ATOMIC_TYPE)) return iter; |
| 104 | long size = iter.size(); |
| 105 | if(size != -1 && st.mayBeWrapped()) size = -1; |
| 106 | return new AtomIter(iter, qc, ii, size); |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Evaluates the expression and returns the resulting, atomized item, |
no test coverage detected