Package xbird.xquery

Examples of xbird.xquery.XQueryModule.staticAnalysis()


                        XQueryParser t = new XQueryParser(fr);
                        XQueryModule m = t.parse();
                        fr.close();
                        StaticContext sc = t.getStaticContext();
                        sc.setSystemBaseURI(statEnv.getSystemBaseURI());
                        m.staticAnalysis(sc);
                        m.visit(GraphConstructionVisitor.this, sc);
                        // create panel
                        final JGraph jgraph = createJGraph();
                        jgraph.setBackground(Color.decode(DEFAULT_BG_COLOR));
                        final JScrollPane panel = new JScrollPane(jgraph);
View Full Code Here


            throw new Exception("Exception caused while parsing: " + path, e);
        }
        StaticContext sc = t.getStaticContext();
        sc.setSystemBaseURI(new File(path).toURI());
        if (enableStaticAnalysis) {
            m.staticAnalysis(sc);
        }
        GraphConstructionVisitor visualizer = new GraphConstructionVisitor(sc);
        m.visit(visualizer, sc);
        visualizer.showInFrame();
    }
View Full Code Here

        } catch (XQueryException e) {
            throw new RemoteException("parse failed.", e);
        }
        StaticContext statEnv = parser.getStaticContext();
        try {
            module.staticAnalysis(statEnv);
        } catch (XQueryException e) {
            throw new RemoteException("Error caused in the static analysis phase.", e);
        }
        return module.getExpression();
    }
View Full Code Here

            _caches.put(path, cached);
            _lock.writeLock().unlock();
            _lock.readLock().lock();
            // static analysis
            try {
                module.staticAnalysis(staticEnv);
            } catch (XQueryException e) {
                log(PrintUtils.prettyPrintStackTrace(e, -1));
                _lock.readLock().unlock();
                throw e;
            }
View Full Code Here

            cached.loadTimeStamp = System.currentTimeMillis();
            _caches.put(path, cached);
            _lock.writeLock().unlock();
            _lock.readLock().lock();
            // static analysis
            module.staticAnalysis(staticEnv);
        }
        _lock.readLock().unlock();
        return cached;
    }
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.