Package xbird.xquery.expr

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


    public XQExpression visit(BindingVariable variable, XQueryContext ctxt) throws XQueryException {
        if(!(variable instanceof PositionalVariable)) {
            XQExpression expr = variable.getValue();
            assert (expr != null);
            expr.visit(this, ctxt);
        }
        return variable;
    }

    public XQExpression visit(BuiltInFunction function, XQueryContext ctxt) throws XQueryException {
View Full Code Here


    public XQExpression visit(CompositePath fragment, XQueryContext ctxt) throws XQueryException {
        String node = "#" + counter + " CompositePath";
        addChildNode(node, fragment);
        parentStack.push(node);
        XQExpression srcExpr = fragment.getSourceExpr();
        srcExpr.visit(this, ctxt);
        parentStack.pop();
        return fragment;
    }

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

        @Override
        public ForClause visit(ForClause clause, XQueryContext ctxt) throws XQueryException {
            ForVariable var = clause.getVariable();
            excludedVariableList.add(var);
            XQExpression e = var.getValue();
            e.visit(this, ctxt);
            return clause;
        }

        @Override
        public LetClause visit(LetClause clause, XQueryContext ctxt) throws XQueryException {
View Full Code Here

        @Override
        public LetClause visit(LetClause clause, XQueryContext ctxt) throws XQueryException {
            LetVariable var = clause.getVariable();
            excludedVariableList.add(var);
            XQExpression e = var.getValue();
            e.visit(this, ctxt);
            return clause;
        }

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

        @Override
        public XQExpression visit(Variable variable, XQueryContext ctxt) throws XQueryException {
            XQExpression expr = variable.getValue();
            if(expr != null) {
                expr.visit(this, ctxt);
            }
            return variable;
        }

    }
View Full Code Here

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

    @Override
View Full Code Here

            attrFeed("name", name.toString());
        } else {
            attrFeed("name");
            indentln();
            XQExpression nameExpr = constructor.getNameExpr();
            nameExpr.visit(this, ctxt);
            indent--;
        }

        attrFeed("value");
        indent++;
View Full Code Here

        indent++;
        final List values = constructor.getValueExprs();
        for(int i = 0; i < values.size(); i++) {
            XQExpression v = (XQExpression) values.get(i);
            lineFeed();
            v.visit(this, ctxt);
        }
        indent--;

        return constructor;
    }
View Full Code Here

    @Override
    public XQExpression visit(BindingVariable variable, XQueryContext ctxt) throws XQueryException {
        XQExpression expr = variable.getValue();
        assert (expr != null);
        expr.visit(this, ctxt);
        return variable;
    }

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

            attrFeed("content", content);
        } else {
            attrFeed("content");
            final XQExpression contentExpr = constructor.getContentExpr();
            indentln();
            contentExpr.visit(this, ctxt);
            indent--;
        }

        return constructor;
    }
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.