Examples of optimize()


Examples of com.redhat.ceylon.compiler.Options.optimize()

        PrintWriter writer = new PrintWriter(System.out);
        if (!jsc.generate()) {
            jsc.printErrorsAndCount(writer);
        }
        System.out.println("Compiling in lexical scope style");
        jsc = new JsCompiler(typeChecker, opts.optimize(false).outRepo("build/test/lexical")).stopOnErrors(false);
        jsc.setResourceFiles(resfiles);
        if (!jsc.generate()) {
            jsc.printErrors(writer);
        }
    }
View Full Code Here

Examples of com.sk89q.worldedit.internal.expression.Expression.optimize()

        return distribution;
    }

    public int makeShape(final Region region, final Vector zero, final Vector unit, final Pattern pattern, final String expressionString, final boolean hollow) throws ExpressionException, MaxChangedBlocksException {
        final Expression expression = Expression.compile(expressionString, "x", "y", "z", "type", "data");
        expression.optimize();

        final RValue typeVariable = expression.getVariable("type", false);
        final RValue dataVariable = expression.getVariable("data", false);

        final WorldEditExpressionEnvironment environment = new WorldEditExpressionEnvironment(this, unit, zero);
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.DefaultStyledDOMOptimizer.optimize()

                new DefaultStyledDOMOptimizer(propertiesOptimizer,
                        detailsSet.getRootStyleValues(),
                        deviceStyleSheet,
                        context);

        OutputStyledElementList elementList = normalizer.optimize(actualXml);
        String actualStyledElements = renderStyledElements(elementList);
        System.out.println(actualStyledElements);

        assertEquals("", expectedStyledElements, actualStyledElements);
    }
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.HeterogeneousShorthandOptimizer.optimize()

                PropertyStatus.REQUIRED);

        MutableStyleProperties outputValues =
            ThemeFactory.getDefaultInstance().createMutableStyleProperties();

        optimizer.optimize(TargetEntity.ELEMENT, inputValues, outputValues,
                deviceValuesMock);

        assertEquals("background-attachment:scroll;background-image:none",
                outputValues.getStandardCSS());
    }
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.ShorthandOptimizer.optimize()

        // A pseudo class must set all the properties that are set so in this
        // case it should use the shorthand.
        checker.prepare(parentValues, TargetEntity.PSEUDO_CLASS);

        optimizer.optimize(TargetEntity.PSEUDO_CLASS, inputValues, outputValues,
                deviceValuesMock);

        assertEquals("font:medium FooBar", outputValues.getStandardCSS());
    }
}
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.StyledDOMOptimizer.optimize()

                new DefaultStyledDOMOptimizer(propertiesOptimizer,
                        detailsSet.getRootStyleValues(),
                        deviceStyleSheet,
                        context);

        OutputStyledElementList elementList = normalizer.optimize(actualXml);
        String actualStyledElements = renderStyledElements(elementList);
        System.out.println(actualStyledElements);

        assertEquals("", expectedStyledElements, actualStyledElements);
    }
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.border.BorderOptimizer.optimize()

                PropertyStatus.REQUIRED);

        MutableStyleProperties outputValues =
            ThemeFactory.getDefaultInstance().createMutableStyleProperties();

        optimizer.optimize(TargetEntity.ELEMENT, inputValues, outputValues,
                deviceValuesMock);

        assertEquals("border-color:black;border-style:solid;border-width:1px 0 0",
                outputValues.getStandardCSS());
    }
View Full Code Here

Examples of de.mpi.rgblab.optimizer.Optimizer.optimize()

  public void optimize(int distance, int surroundAngle) {
    int radiusView =  VisUtil.getViewRadius(distance);
    int radiusSurround =  VisUtil.getRadius(distance, surroundAngle);
    Optimizer opt = new Optimizer();
    classColors = opt.optimize(data, classColors, radiusSurround, radiusView);
    update(-1);
  }

  // reutrn 0 for ok
  // otherwise return the minimum numbers of colors needed
View Full Code Here

Examples of edu.brown.optimizer.PlanOptimizer.optimize()

//        System.out.println();
//        System.out.println();
       
//        System.err.println(m_parsedSelect.sql);
        PlanOptimizer po = new PlanOptimizer(m_context, m_catalogDb);
        AbstractPlanNode new_root = po.optimize(m_parsedSelect.sql, root);
       
//        if (root.getPlanNodeType().equals(PlanNodeType.PROJECTION) && PlanNodeUtil.getDepth(root) == 0) {
//            System.out.println("Root node type: " + root.getPlanNodeType());
//            System.out.println("Depth: " + PlanNodeUtil.getDepth(root));
//            System.out.println(PlanNodeUtil.debug(root));
View Full Code Here

Examples of edu.brown.optimizer.optimizations.AbstractOptimization.optimize()

            try {
                AbstractOptimization opt = ClassUtil.newInstance(optClass,
                                                                 new Object[] { state },
                                                                 new Class<?>[] { PlanOptimizerState.class });
                assert (opt != null);
                Pair<Boolean, AbstractPlanNode> p = opt.optimize(new_root);
                if (p.getFirst()) {
                    if (debug.val)
                        LOG.debug(String.format("%s modified query plan", optClass.getSimpleName()));
                    new_root = p.getSecond();
                }
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.