Package xbird.xquery.expr

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


        return constructor;
    }

    public XQExpression visit(ExtensionExpr expr, XQueryContext ctxt) throws XQueryException {
        XQExpression e = expr.getExpr();
        e.visit(this, ctxt);
        return expr;
    }

    public XQExpression visit(ExpressionProxy proxy, XQueryContext ctxt) throws XQueryException {
        XQExpression e = proxy.getAppropriateExpr();
View Full Code Here


        return expr;
    }

    public XQExpression visit(ExpressionProxy proxy, XQueryContext ctxt) throws XQueryException {
        XQExpression e = proxy.getAppropriateExpr();
        e.visit(this, ctxt);
        return proxy;
    }

    public XQExpression visit(ExternalVariable var, XQueryContext ctxt) throws XQueryException {
        return var;
View Full Code Here

        return var;
    }

    public XQExpression visit(FilterExpr expr, XQueryContext ctxt) throws XQueryException {
        final XQExpression e = expr.getSourceExpr();
        e.visit(this, ctxt);
        for(XQExpression p : expr.getPredicates()) {
            p.visit(this, ctxt);
        }
        return expr;
    }
View Full Code Here

            b.visit(this, ctxt);
        }
        // #2 return
        XQExpression filteredRet = expr.getFilteredReturnExpr();
        if(filteredRet != null) {
            filteredRet.visit(this, ctxt);
        } else {
            // #2-1 where filtering
            XQExpression where = expr.getWhereExpr();
            if(where != null) {
                where.visit(this, ctxt);
View Full Code Here

            filteredRet.visit(this, ctxt);
        } else {
            // #2-1 where filtering
            XQExpression where = expr.getWhereExpr();
            if(where != null) {
                where.visit(this, ctxt);
            }
            // #2-2 return
            XQExpression ret = expr.getReturnExpr();
            assert (ret != null);
            ret.visit(this, ctxt);
View Full Code Here

                where.visit(this, ctxt);
            }
            // #2-2 return
            XQExpression ret = expr.getReturnExpr();
            assert (ret != null);
            ret.visit(this, ctxt);
        }
        // #3 order by sorting
        for(OrderSpec o : expr.getOrderSpecs()) {
            o.visit(this, ctxt);
        }
View Full Code Here

        return expr;
    }

    public ForClause visit(ForClause clause, XQueryContext ctxt) throws XQueryException {
        XQExpression e = clause.getInExpr();
        e.visit(this, ctxt);
        return clause;
    }

    public XQExpression visit(FunctionCall call, XQueryContext ctxt) throws XQueryException {
        for(XQExpression p : call.getParams()) {
View Full Code Here

            PathVariable prevVar = _lastPathVariable;
            Variable src = fragment.getSourceVariable();
            src.visit(this, ctxt);
            this._lastPathVariable = prevVar;
            XQExpression filter = fragment.getFilterExpr();
            filter.visit(this, ctxt);
            return fragment;
        }

        @Override
        public XQExpression visit(FilterExpr filterExpr, XQueryContext ctxt) throws XQueryException {
View Full Code Here

    }

    public XQExpression visit(IfExpr expr, XQueryContext ctxt) throws XQueryException {
        // if
        XQExpression cond = expr.getCondExpr();
        cond.visit(this, ctxt);
        // then
        XQExpression then = expr.getThenExpr();
        then.visit(this, ctxt);
        // else
        XQExpression els = expr.getElseExpr();
View Full Code Here

        // if
        XQExpression cond = expr.getCondExpr();
        cond.visit(this, ctxt);
        // then
        XQExpression then = expr.getThenExpr();
        then.visit(this, ctxt);
        // else
        XQExpression els = expr.getElseExpr();
        els.visit(this, ctxt);
        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.