Package xbird.xquery.expr

Examples of xbird.xquery.expr.XQExpression.visit()


        // return
        lineFeed();
        buf.append("return ");
        indentln();
        XQExpression ret = (filteredRet == null) ? expr.getReturnExpr() : filteredRet;
        ret.visit(this, ctxt);
        indent--;

        return expr;
    }
View Full Code Here


        for(int i = 0; i < params.size(); i++) {
            if(i != 0) {
                buf.append(", ");
            }
            XQExpression p = (XQExpression) params.get(i);
            p.visit(this, ctxt);
        }
        buf.append(')');
        return call;
    }
View Full Code Here

            if(i != 0) {
                buf.append(" or");
                lineFeed();
            }
            XQExpression e = (XQExpression) exprs.get(i);
            e.visit(this, ctxt);
        }
        return expr;
    }

    @Override
View Full Code Here

        for(int i = 0; i < steplen; i++) {
            if(i != 0) {
                buf.append('/');
            }
            XQExpression expr = steps.get(i);
            expr.visit(this, ctxt);
        }
        /*
         if(steplen > 0) {
         XQExpression lastExpr = steps.get(steplen - 1);
         lastExpr.visit(this, ctxt);
View Full Code Here

        buf.append(binding.getName());

        buf.append(" in ");
        indentln();
        XQExpression inExpr = binding.getValue();
        inExpr.visit(this, ctxt);
        indent--;

        lineFeed();
        buf.append("satisfies");
        indentln();
View Full Code Here

            if(i != 0) {
                buf.append(", ");
                lineFeed();
            }
            XQExpression e = (XQExpression) exprs.get(i);
            e.visit(this, ctxt);
        }
        indent--;
        lineFeed();
        buf.append(')');
        return expr;
View Full Code Here

            throws XQueryException {
        header("TextConstructor");

        final XQExpression content = constructor.getContent();
        indentln();
        content.visit(this, ctxt);
        indent--;

        return constructor;
    }
View Full Code Here

        lineFeed();
        buf.append("default:");
        XQExpression dc = expr.getDefaultClause();
        if(dc != null) {
            indentln();
            dc.visit(this, ctxt);
            indent--;
        }
        indent--;
        lineFeed();
        buf.append('}');
View Full Code Here

            buf.append(type);
        }
        XQExpression value = variable.getValue();
        buf.append(" := ");
        if(value != null) { // may be null with funcall
            value.visit(this, ctxt);
        }
        return variable;
    }

    @Override
View Full Code Here

        buf.append("execute at ");
        buf.append(expr.getRemoteEndpoint());
        buf.append(" {");
        indentln();
        XQExpression body = expr.getBodyExpression();
        body.visit(this, ctxt);
        indent--;
        lineFeed();
        buf.append(" }");
        return expr;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.