Package xbird.xquery.expr.path.PathExpr

Examples of xbird.xquery.expr.path.PathExpr.CompositePath


        @Override
        public XQExpression visit(final PathVariable variable, final XQueryContext ctxt)
                throws XQueryException {
            final XQExpression pathExpr = variable.getValue();
            if(pathExpr instanceof CompositePath) {
                final CompositePath cp = (CompositePath) pathExpr;
                final XQExpression srcExpr = cp.getSourceExpr();
                assert (srcExpr != null);
                final XQExpression filterExpr = cp.getFilterExpr();
                assert (filterExpr != null);
                srcExpr.visit(this, ctxt);
                if(srcExpr == _target) {
                    variable.setValue(filterExpr);
                }
View Full Code Here


            }
            if(!isFirst && _lastPathVariable != null) { // found join
                XQExpression pvExpr = _lastPathVariable.getValue();
                final XQExpression srcExpr;
                if(pvExpr instanceof CompositePath) {
                    CompositePath srcPath = (CompositePath) pvExpr;
                    XQExpression filterBaseExpr = filterExpr.getSourceExpr();
                    srcPath.setFilterExpr(filterBaseExpr);
                    srcExpr = srcPath;
                } else if(pvExpr instanceof FilterExpr) {//FIXME REVIEWME
                    srcExpr = filterExpr.getSourceExpr();
                } else {
                    throw new IllegalStateException("Unexpected expression is binded to last PathVariable "
View Full Code Here

            }
            if(!isFirst && _lastPathVariable != null) { // found join
                XQExpression pvExpr = _lastPathVariable.getValue();
                final XQExpression srcExpr;
                if(pvExpr instanceof CompositePath) {
                    CompositePath srcPath = (CompositePath) pvExpr;
                    XQExpression filterBaseExpr = filterExpr.getSourceExpr();
                    srcPath.setFilterExpr(filterBaseExpr);
                    srcExpr = srcPath;
                } else if(pvExpr instanceof FilterExpr) {//FIXME REVIEWME
                    srcExpr = filterExpr.getSourceExpr();
                } else {
                    throw new IllegalStateException("Unexpected expression is binded to last PathVariable "
View Full Code Here

TOP

Related Classes of xbird.xquery.expr.path.PathExpr.CompositePath

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.