/** * Protected constructor * * @param processor the Saxon processor * @param expression the XQuery expression */ protected XQueryEvaluator(Processor processor, XQueryExpression expression) { this.processor = processor; this.expression = expression; this.context = new DynamicQueryContext(expression.getConfiguration()); }
/** * Protected constructor * * @param processor the Saxon processor * @param expression the XQuery expression */ protected XQueryEvaluator(Processor processor, XQueryExpression expression) { this.processor = processor; this.expression = expression; this.context = new DynamicQueryContext(expression.getConfiguration()); }
/** * Run the query in pull mode. From Saxon 9.8 this method is identical to {@link #run(DynamicQueryContext, Result, Properties)} * (supplying the default serialization properties from the configuration as the third argument) * @param dynamicEnv the dynamic context for query evaluation * @param destination the Receiver to accept the query results *usually a serializer) * @throws XPathException if a dynamic error occurs during the evaluation * @deprecated since 9.8. */ public void pull(DynamicQueryContext dynamicEnv, SequenceReceiver destination) throws XPathException { run(dynamicEnv, destination, getConfiguration().getDefaultSerializationProperties()); }
/** * Run the query in pull mode. From Saxon 9.8 this method is identical to {@link #run(DynamicQueryContext, Result, Properties)} * (supplying the default serialization properties from the configuration as the third argument) * @param dynamicEnv the dynamic context for query evaluation * @param destination the Receiver to accept the query results *usually a serializer) * @throws XPathException if a dynamic error occurs during the evaluation * @deprecated since 9.8. */ public void pull(DynamicQueryContext dynamicEnv, SequenceReceiver destination) throws XPathException { run(dynamicEnv, destination, getConfiguration().getDefaultSerializationProperties()); }
private Receiver getDestinationReceiver(Destination destination) throws SaxonApiException { Executable exec = expression.getExecutable(); PipelineConfiguration pipe = expression.getConfiguration().makePipelineConfiguration(); Receiver out = destination.getReceiver(pipe, exec.getPrimarySerializationProperties()); if (Configuration.isAssertionsEnabled()) { return new RegularSequenceChecker(out); } else { return out; } }
private Receiver getDestinationReceiver(Destination destination) throws SaxonApiException { Executable exec = expression.getExecutable(); PipelineConfiguration pipe = expression.getConfiguration().makePipelineConfiguration(); Receiver out = destination.getReceiver(pipe, exec.getPrimarySerializationProperties()); if (Configuration.isAssertionsEnabled()) { return new RegularSequenceChecker(out); } else { return out; } }