Package xbird.xquery.expr.var

Examples of xbird.xquery.expr.var.Variable


        @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


                        if(pathSrc != null) {
                            if(isFirst) {
                                persistKeyExprs = new ArrayList<XQExpression>(4);
                                searchKeyExprs = new ArrayList<XQExpression>(4);
                            }
                            Variable pv = pathSrc.getValue();
                            if(pv instanceof BindingVariable) {
                                if(searchKeyExpr instanceof CompositePath
                                        && _currentForClause != null) {
                                    assert (_currentBindings != null);
                                    final LetVariable lv = new AnonymousLetVariable(searchKeyExpr);
View Full Code Here

            default:
                jj_la1[23] = jj_gen;
                jj_consume_token(-1);
                throw new ParseException();
        }
        final Variable variable;
        if(isExternal) {
            Variable extVar = currentModule.getVariable(varName);
            if(extVar != null) {
                variable = extVar;
            } else {
                variable = ExpressionFactory.createExternalVariable(varName, currentModule);
                currentModule.putVariable(varName, variable);
View Full Code Here

                String defaultNamespace = currentModule.getNamespace();
                if(defaultNamespace == null) {
                    defaultNamespace = "";
                }
                QualifiedName vn = QNameUtil.parse(currentToken.image, namespaceContext, defaultNamespace);
                Variable var = currentModule.getVariable(vn);
                if(var == null) {
                    error("err:XPST0008");
                }
                expr = new VarRef(var);
                break;
View Full Code Here

        }
        return variable;
    }

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

TOP

Related Classes of xbird.xquery.expr.var.Variable

Copyright © 2018 www.massapicom. 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.