Constructs child and attribute nodes. @param exprs input expressions @return self reference @throws QueryException query exception
(final Expr... exprs)
| 63 | * @throws QueryException query exception |
| 64 | */ |
| 65 | public Constr add(final Expr... exprs) throws QueryException { |
| 66 | final NSDynContext ns = qc.ns; |
| 67 | final int size = ns.size(); |
| 68 | try { |
| 69 | final QNmSet qnames = new QNmSet(); |
| 70 | for(final Expr expr : exprs) { |
| 71 | more = false; |
| 72 | final Iter iter = expr.iter(qc); |
| 73 | for(Item item; (item = qc.next(iter)) != null && add(item, qnames);); |
| 74 | } |
| 75 | builder.text(qc.shared.token(text.toArray())); |
| 76 | return this; |
| 77 | } finally { |
| 78 | ns.size(size); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Recursively adds nodes to the element arrays. |