Package client.net.sf.saxon.ce.value

Examples of client.net.sf.saxon.ce.value.Value.iterate()


        if (operand instanceof Literal) {
            Value val = ((Literal)operand).getValue();
            if (val instanceof AtomicValue) {
                return operand;
            }
            SequenceIterator iter = val.iterate();
            while (true) {
                // if all items in the sequence are atomic (they generally will be, since this is
                // done at compile time), then return the sequence
                Item i = iter.next();
                if (i == null) {
View Full Code Here


        if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
            String label = argument[1].evaluateAsString(context).toString();
            int evalMode = ExpressionTool.eagerEvaluationMode(argument[0]); // eagerEvaluate not implemented in CE
            Value value = Value.asValue(ExpressionTool.evaluate(argument[0], evalMode, context, 10));
            notifyListener(label, value, context);
            return value.iterate();
        } else {
            if (!LogConfiguration.loggingIsEnabled()) {
                return argument[0].iterate(context);
            } else {
                return new TracingIterator(argument[0].iterate(context),
View Full Code Here

        if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
            String label = arguments[1].next().getStringValue();
            Value value = Value.asValue(SequenceExtent.makeSequenceExtent(arguments[0]));
            notifyListener(label, value, context);
            return value.iterate();
        } else {

            if (!LogConfiguration.loggingIsEnabled()) {
                return argument[0].iterate(context);
            } else {
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.