Package client.net.sf.saxon.ce.expr.instruct

Examples of client.net.sf.saxon.ce.expr.instruct.Choose


            System.arraycopy(actions, 0, actions2, 0, entries);
            conditions = conditions2;
            actions = actions2;
        }
        if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
          Choose ch = new Choose(conditions, actions);
          ch.setConditionTests(conditionTests);
          return ch;
        } else {
          return new Choose(conditions, actions);
        }
    }
View Full Code Here


        if (!Cardinality.allowsMany(getBaseExpression().getCardinality())) {
            return getBaseExpression();
        }
        // In a choose expression, we can push the wrapper down to the action branches (whence it may disappear)
        if (getBaseExpression() instanceof Choose) {
            Choose choose = (Choose) getBaseExpression();
            Expression[] actions = choose.getActions();
            for (int i=0; i<actions.length; i++) {
                AdjacentTextNodeMerger atm2 = new AdjacentTextNodeMerger(actions[i]);
                actions[i] = atm2.typeCheck(visitor, contextItemType);
            }
            return choose;
View Full Code Here

            return null;
        }
        Expression[] conditions = {test};
        Expression[] actions = {action};

        Choose inst = new Choose(conditions, actions);
        if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
          inst.AddTraceProperty("test", getTestAttribute(this));
        }
        return inst;
    }
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.expr.instruct.Choose

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.