Package org.pdf4j.saxon.trace

Examples of org.pdf4j.saxon.trace.ExpressionPresenter


     * @deprecated since 9.0 - use the explain method
     */

    public void display(int level, PrintStream out, Configuration config) {
        try {
            ExpressionPresenter ep = new ExpressionPresenter(config,
                    ExpressionPresenter.defaultDestination(config, out));
            explain(ep);
        } catch (XPathException err) {
            // ignore the exception
        }
View Full Code Here


     * is written to the supplied outputstream.
     * @param out the expression presenter used to display the structure
     */

    public final void explain(OutputStream out) {
        ExpressionPresenter ep = new ExpressionPresenter(getExecutable().getConfiguration(), out);
        explain(ep);
        ep.close();
    }
View Full Code Here

                        props.setProperty(SaxonOutputKeys.INDENT_SPACES, "2");
                        Receiver diag = config.getSerializerFactory().getReceiver(
                                new StreamResult(explainOutput),
                                config.makePipelineConfiguration(),
                                props);
                        ExpressionPresenter expressionPresenter = new ExpressionPresenter(config, diag);
                        sheet.explain(expressionPresenter);
                        expressionPresenter.close();
                    }

                }

                if (wholeDirectory) {
View Full Code Here

            // if one argument is less-preferred

            if (debug) {
                diag.println("Finding best fit method with arguments:");
                try {
                    ExpressionPresenter ep = new ExpressionPresenter(config,
                            ExpressionPresenter.defaultDestination(config, diag));
                    for (int v = 0; v < args.length; v++) {
                        args[v].explain(ep);
                    }
                } catch (XPathException err) {
View Full Code Here

     * @since 9.1
     */

    public void explain(Destination destination) throws SaxonApiException {
        Configuration config = processor.getUnderlyingConfiguration();
        pss.explain(new ExpressionPresenter(config, destination.getReceiver(config)));
    }
View Full Code Here

        props.setProperty(SaxonOutputKeys.INDENT_SPACES, "2");
        Receiver diag = config.getSerializerFactory().getReceiver(
                new StreamResult(explainOutput),
                config.makePipelineConfiguration(),
                props);
        ExpressionPresenter expressionPresenter = new ExpressionPresenter(config, diag);
        exp.explain(expressionPresenter);
    }
View Full Code Here

TOP

Related Classes of org.pdf4j.saxon.trace.ExpressionPresenter

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.