Package xbird.xquery.expr.opt

Examples of xbird.xquery.expr.opt.ThreadedVariable


        @Override
        public XQExpression visit(Variable variable, XQueryContext ctxt) throws XQueryException {
            if(variable instanceof ThreadedVariable) {
                assert (!_threadedVars.contains(variable));
                ThreadedVariable thVar = (ThreadedVariable) variable;
                _threadedVars.add(thVar);
                return variable;
            }
            return super.visit(variable, ctxt);
        }
View Full Code Here


                buf.append(var);
            } else {
                visit(expr, ctxt);
            }
        } else if(var instanceof ThreadedVariable) {
            ThreadedVariable threadVar = (ThreadedVariable) var;
            buf.append(threadVar);
            buf.append(" := ");
            indentln();
            XQExpression expr = threadVar.getValue();
            assert (expr != null);
            visit(expr, ctxt);
            indent--;
        } else if(var instanceof ShippedVariable) {
            buf.append(var.getValue());
View Full Code Here

                statEnv.setIndicesAccessible(prevState);
            }

            this._queryExpr = compiledExpr;
            this._type = compiledExpr.getType();
            final ThreadedVariable threadedVar = new ThreadedVariable(this);
            statEnv.addThreadedVariable(threadedVar);
            return threadedVar;
        }
        return this;
    }
View Full Code Here

            } else if(evalPolicy == EvaluationPolicy.rewritten) {
                XQExpression rewritted = func.rewrite(_params, statEnv);
                XQExpression analyzed = rewritted.staticAnalysis(statEnv);
                return analyzed;
            } else if(evalPolicy == EvaluationPolicy.threaded) {
                ThreadedVariable threadedVar = new ThreadedVariable(this);
                statEnv.addThreadedVariable(threadedVar);
                return threadedVar;
            }
        }
        return this;
View Full Code Here

            } else if(evalPolicy == EvaluationPolicy.rewritten) {
                XQExpression rewritted = func.rewrite(_params, statEnv);
                XQExpression analyzed = rewritted.staticAnalysis(statEnv);
                return analyzed;
            } else if(evalPolicy == EvaluationPolicy.threaded) {
                ThreadedVariable threadedVar = new ThreadedVariable(this);
                statEnv.addThreadedVariable(threadedVar);
                return threadedVar;
            }
        }
        return this;
View Full Code Here

TOP

Related Classes of xbird.xquery.expr.opt.ThreadedVariable

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.