Package xbird.xquery.expr.var.BindingVariable

Examples of xbird.xquery.expr.var.BindingVariable.CaseVariable.allocateResult()


        final Sequence<? extends Item> opr = _operandExpr.eval(contextSeq, dynEnv);
        for(CaseClause cc : _caseClauses) {
            final CaseVariable cv = cc.getVariable();
            final Type ccType = cv.getType();
            if(TypeUtil.instanceOf(opr, ccType)) {
                cv.allocateResult(opr, dynEnv);
                final XQExpression ccExpr = cc.getReturnExpr();
                return ccExpr.eval(contextSeq, dynEnv);
            }
        }
        throw new IllegalStateException("Typeswitch abnormally failed");
View Full Code Here


        final Sequence<? extends Item> opr = _operandExpr.eval(contextSeq, dynEnv);
        for(CaseClause cc : _caseClauses) {
            final CaseVariable cv = cc.getVariable();
            final Type ccType = cv.getType();
            if(TypeUtil.instanceOf(opr, ccType)) {
                cv.allocateResult(opr, dynEnv);
                final XQExpression ccExpr = cc.getReturnExpr();
                ccExpr.evalAsEvents(handler, contextSeq, dynEnv);
                return;
            }
        }
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.