Examples of visitTree()


Examples of javax.faces.component.UIViewRoot.visitTree()

        UIViewRoot viewroot = event.getFacesContext().getViewRoot();
        if (viewroot != null)
        {
            // skip all unrendered components to really only show
            // the rendered components and to circumvent data access problems
            viewroot.visitTree(VisitContext.createVisitContext(
                    event.getFacesContext(), null,
                    EnumSet.of(VisitHint.SKIP_UNRENDERED)),
                    _visitCallback);
        }
    }
View Full Code Here

Examples of javax.faces.component.UIViewRoot.visitTree()

        UIViewRoot viewroot = event.getFacesContext().getViewRoot();
        if (viewroot != null)
        {
            // skip all unrendered components to really only show
            // the rendered components and to circumvent data access problems
            viewroot.visitTree(VisitContext.createVisitContext(
                    event.getFacesContext(), null,
                    EnumSet.of(VisitHint.SKIP_UNRENDERED)),
                    _visitCallback);
        }
    }
View Full Code Here

Examples of javax.faces.component.UIViewRoot.visitTree()

        UIViewRoot viewroot = event.getFacesContext().getViewRoot();
        if (viewroot != null)
        {
            // skip all unrendered components to really only show
            // the rendered components and to circumvent data access problems
            viewroot.visitTree(VisitContext.createVisitContext(
                    event.getFacesContext(), null,
                    EnumSet.of(VisitHint.SKIP_UNRENDERED)),
                    _visitCallback);
        }
    }
View Full Code Here

Examples of joust.analysers.Live.visitTree()

    @Override
    public void visitMethodDef(AJCMethodDecl tree) {
        // Run LVA over the method...
        // Actually, use the narking side effects?
        Live live = new Live();
        live.visitTree(tree);

        everLive = tree.everLive;

        // Don't visit the parameters of a method. Deleting parameters isn't allowed.
        // While we're at it, let's gloss over all the crap we don't care about.
View Full Code Here

Examples of joust.analysers.TouchedSymbolLocator.visitTree()

        // If the assignee is being transformed away and the rhs refers to something that isn't, we fail the assignee and
        // every candidate referred to on the RHS.
        // If the assignee is not being transformed away, and the rhs refers to things that aren't, we fail every candidate
        // referred to on the rhs.
        TouchedSymbolLocator locator = new TouchedSymbolLocator();
        locator.visitTree(that.rhs);
        Set<VarSymbol> touchedSymbols = locator.touched;
        log.debug("touched syms: {}", Arrays.toString(touchedSymbols.toArray()));
        // Strip out all the symbols that aren't boxed.
        Iterator<VarSymbol> i = touchedSymbols.iterator();
        while (i.hasNext()) {
View Full Code Here

Examples of joust.analysers.sideeffects.SideEffectVisitor.visitTree()

    @Ignore
    @Test
    @Parameters(method = "invarFinderArgs")
    public void findInvariants(AJCEffectAnnotatedTree inputTree, Set<AJCExpressionTree> expectedInvariants) {
        SideEffectVisitor effects = new SideEffectVisitor(true);
        effects.visitTree(inputTree);

        EffectSet loopEffects = inputTree.effects.getEffectSet();

        Set<VarSymbol> writtenInLoop = loopEffects.writeInternal;
        Set<VarSymbol> readInLoop = loopEffects.readInternal;
View Full Code Here

Examples of joust.optimisers.finalfold.FinalValueFinder.visitTree()

    @Override
    public void run() {
        FinalValueFinder finder = new FinalValueFinder();

        for (AJCTree tree : AJCForest.getInstance().rootNodes) {
            finder.visitTree(tree);
        }

        ContextInliningTranslator inliner = new ContextInliningTranslator(finder.values);

        for (AJCTree tree : AJCForest.getInstance().rootNodes) {
View Full Code Here

Examples of joust.optimisers.invar.ExpressionComplexityClassifier.visitTree()

            if ((!argEffects.contains(EffectSet.EffectType.READ_ESCAPING)
              || !argEffects.contains(EffectSet.EffectType.WRITE_ESCAPING))
              && !argEffects.contains(EffectSet.EffectType.IO)) {
                 // Since you don't *have* to extract it, check if this one is expensive enough for it to be worth it.
                 ExpressionComplexityClassifier classifier = new ExpressionComplexityClassifier();
                 classifier.visitTree(args[i]);

                 log.info("Score for {} is {}", args[i], classifier.getScore());

                 if (classifier.getScore() < ARGUMENT_EXTRACTION_THRESHOLD) {
                     continue;
View Full Code Here

Examples of joust.optimisers.invar.InvariantExpressionFinder.visitTree()

        // The local variables written by the loop. Expressions that depend on these aren't loop invariants. (Usually)
        SymbolSet writtenInLoop = loopEffects.writeInternal;
        SymbolSet readInLoop = loopEffects.readInternal;

        InvariantExpressionFinder invariantFinder = new InvariantExpressionFinder(writtenInLoop, readInLoop);
        invariantFinder.visitTree(loop);

        log.debug("Invariant expressions: {}", Arrays.toString(invariantFinder.invariantExpressions.keySet().toArray()));

        Iterator<AJCComparableExpressionTree> iterator = invariantFinder.invariantExpressions.keySet().iterator();
        while (iterator.hasNext()) {
View Full Code Here

Examples of joust.optimisers.normalise.TreeNormalisingTranslator.visitTree()

                prospectiveMethodTable.put(defN.getTargetSymbol(), defN);
                log.debug("Method: {}", defN.getTargetSymbol());
            }

            // Normalise the tree.
            normaliser.visitTree(translatedTree);

            prospectiveRootNodes = prospectiveRootNodes.prepend(translatedTree);

            environMap.put(translatedTree, env.fst);
        }
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.