Package xbird.xquery.parser.visitor

Examples of xbird.xquery.parser.visitor.PrintVisitor


        String expr = textArea1.getText();
        XQueryParser parser = new XQueryParser(
                new ByteArrayInputStream(expr.getBytes()));
        parser.disable_tracing();

        PrintVisitor dumper;
        try {
            XQueryModule module = parser.parse();
            dumper = new PrintVisitor();
            module.visit(dumper, null);
            textArea2.setText(dumper.getResult());
        } catch (Exception e) {
            textArea2.setText(e.getMessage());
        }
    }
View Full Code Here


        return false;
    }

    @Override
    public String toString() {
        final PrintVisitor pv = new PrintVisitor();
        try {
            visit(pv, new StaticContext());
        } catch (XQueryException e) {
            return "";
        }
        return pv.getResult();
    }
View Full Code Here

TOP

Related Classes of xbird.xquery.parser.visitor.PrintVisitor

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.