Examples of visit()


Examples of tree.utils.Printer.visit()

    }
   
    private void printAST()
    {
        Printer printer = new Printer();
        printer.visit(currentAST);
    }
}
View Full Code Here

Examples of workspace.ProjectVisitor.visit()

        ProjectVisitor visitor = new ProjectVisitor(CodeFile.EXTENTION);
        try
        {
            for (IResource r : baseProject.members())
            {
                visitor.visit(r);
            }
           
            List<IFile> ff = visitor.getBuildFileList();
            for (IFile f : ff)
            {
View Full Code Here

Examples of xbird.xquery.XQueryModule.visit()

                        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);
                        panel.setPreferredSize(DEFAULT_SIZE);
View Full Code Here

Examples of xbird.xquery.dm.value.sequence.GroupedSequence.PreGroupingVariableExtractor.visit()

        // group by
        if(_groupByClause != null) {
            GroupingSpec[] specs = _groupByClause.getGroupingKeysAsArray();

            PreGroupingVariableExtractor extractor = new PreGroupingVariableExtractor(specs);
            extractor.visit(_filteredReturnExpr, dynEnv);
            List<BindingVariable> nonGroupingVariables = extractor.getNonGroupingVariables();

            input = new GroupedSequence(input, specs, nonGroupingVariables, contextSeq, dynEnv, _groupByClause.isOrdering());
        }
        // where + return
View Full Code Here

Examples of xbird.xquery.expr.XQExpression.visit()

    public XQExpression visit(BindingVariable variable, XQueryContext ctxt) throws XQueryException {
        if(!(variable instanceof PositionalVariable)) {
            XQExpression expr = variable.getValue();
            assert (expr != null);
            expr.visit(this, ctxt);
        }
        return variable;
    }

    public XQExpression visit(BuiltInFunction function, XQueryContext ctxt) throws XQueryException {
View Full Code Here

Examples of xbird.xquery.expr.flwr.Binding.visit()

                        _protectHook = true;
                    }
                    forClause.visit(this, ctxt);
                    _protectHook = false;
                } else {
                    b.visit(this, ctxt);
                }
            }
            isLoopInvariant &= b.isLoopInvariant();
        }
        // #2 return
View Full Code Here

Examples of xbird.xquery.expr.flwr.ForClause.visit()

                    ForClause forClause = (ForClause) b;
                    int loopDepth = forClause.getLoopDepth();
                    if(loopDepth <= 1) {
                        _protectHook = true;
                    }
                    forClause.visit(this, ctxt);
                    _protectHook = false;
                } else {
                    b.visit(this, ctxt);
                }
            }
View Full Code Here

Examples of xbird.xquery.expr.flwr.LetClause.visit()

                if(type == Binding.FOR_CLAUSE) {
                    // no need to analyze
                    return flwr;
                } else {
                    LetClause lc = (LetClause) b;
                    lc.visit(this, ctxt);
                    if(lc.isLoopInvariant()) {
                        _pullup.put(lc, bindings);
                    }
                }
            } else {
View Full Code Here

Examples of xbird.xquery.expr.path.NodeTest.visit()

        return constructor;
    }

    public XQExpression visit(AxisStep step, XQueryContext ctxt) throws XQueryException {
        NodeTest nt = step.getNodeTest();
        nt.visit(this, ctxt);
        boolean isLoopInvariant = nt.isLoopInvariant();
        if(isLoopInvariant) {
            removeInvariants(nt);
            return hookLoopInvariant(step);
        }
View Full Code Here

Examples of xbird.xquery.expr.types.CaseClause.visit()

        for(int i = 0; i < cases.size(); i++) {
            if(i != 0) {
                lineFeed();
            }
            CaseClause c = (CaseClause) cases.get(i);
            c.visit(this, ctxt);
        }
        lineFeed();
        buf.append("default:");
        XQExpression dc = expr.getDefaultClause();
        if(dc != null) {
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.