Package xbird.xquery.expr.var

Examples of xbird.xquery.expr.var.Variable.visit()


            attrFeed("variable decls");
            indent++;
            do {
                lineFeed();
                Variable v = v_itor.next();
                v.visit(this, ctxt);
            } while(v_itor.hasNext());
            indent--;
        }

        final Iterator<UserFunction> f_itor = module.getLocalFunctions().iterator();
View Full Code Here


        return variable;
    }

    public XQExpression visit(VarRef ref, XQueryContext ctxt) throws XQueryException {
        Variable var = ref.getValue();
        var.visit(this, ctxt);
        boolean isLoopInvariant = var.isLoopInvariant();
        if(isLoopInvariant) {
            return hookLoopInvariant(ref);
        }
        return ref;
View Full Code Here

        @Override
        public XQExpression visit(CompositePath fragment, XQueryContext ctxt)
                throws XQueryException {
            PathVariable prevVar = _lastPathVariable;
            Variable src = fragment.getSourceVariable();
            src.visit(this, ctxt);
            this._lastPathVariable = prevVar;
            XQExpression filter = fragment.getFilterExpr();
            filter.visit(this, ctxt);
            return fragment;
        }
View Full Code Here

        return call;
    }

    public XQExpression visit(GroupingSpec spec, XQueryContext ctxt) throws XQueryException {
        Variable var = spec.getKeyExpr();
        var.visit(this, ctxt);
        return spec;
    }

    public XQExpression visit(IfExpr expr, XQueryContext ctxt) throws XQueryException {
        // if
View Full Code Here

    }

    public XQExpression visit(VarRef ref, XQueryContext ctxt) throws XQueryException {
        Variable var = ref.getValue();
        assert (var != null) : ref;
        var.visit(this, ctxt);
        return ref;
    }

    public XQExpression visit(BDQExpr expr, XQueryContext ctxt) throws XQueryException {
        XQExpression body = expr.getBodyExpression();
View Full Code Here

        return variable;
    }

    public XQExpression visit(VarRef ref, XQueryContext ctxt) throws XQueryException {
        Variable var = ref.getValue();
        var.visit(this, ctxt);
        boolean isLoopInvariant = var.isLoopInvariant();
        if(isLoopInvariant) {
            return hookLoopInvariant(ref);
        }
        return ref;
View Full Code Here

        @Override
        public XQExpression visit(CompositePath fragment, XQueryContext ctxt)
                throws XQueryException {
            PathVariable prevVar = _lastPathVariable;
            Variable src = fragment.getSourceVariable();
            src.visit(this, ctxt);
            this._lastPathVariable = prevVar;
            XQExpression filter = fragment.getFilterExpr();
            filter.visit(this, ctxt);
            return fragment;
        }
View Full Code Here

    }

    public XQExpression visit(VarRef ref, XQueryContext ctxt) throws XQueryException {
        Variable var = ref.getValue();
        assert (var != null) : ref;
        var.visit(this, ctxt);
        return ref;
    }

    public XQExpression visit(BDQExpr expr, XQueryContext ctxt) throws XQueryException {
        XQExpression body = expr.getBodyExpression();
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.