Examples of FormulaParser


Examples of org.pentaho.reporting.libraries.formula.parser.FormulaParser

                parameters.put(SDBCReportDataFactory.DETAIL_COLUMNS, detailColumns);
            }

            final Node[] nodes = report.getNodeArray();

            final FormulaParser parser = new FormulaParser();
            final ArrayList expressions = new ArrayList();
            final OfficeReport officeReport = (OfficeReport) ((Section) nodes[0]).getNode(0);
            final Section reportBody = (Section) officeReport.getBodySection();
            collectGroupExpressions(reportBody.getNodeArray(), expressions, parser, officeReport.getExpressions());
            parameters.put(SDBCReportDataFactory.GROUP_EXPRESSIONS, expressions);
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.parser.FormulaParser

      {
        formula = FormulaUtil.extractFormula(formulaWithPrefix);
      }
      try
      {
        final FormulaParser parser = new FormulaParser();
        final LValue value = parser.parse(formula);
        if (value instanceof FormulaFunction)
        {
          final FormulaFunction function = (FormulaFunction) value;
          if ("DRILLDOWN".equals(function.getFunctionName())) // NON-NLS
          {
View Full Code Here

Examples of org.sbml.jsbml.text.parser.FormulaParser

    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

    Model m = new Model("test", 2, 4);
    m.createFunctionDefinition("f");
    m.createRateRule();
    FormulaParser parser;

    for (int i = 0; i < testCases.length; i++) {
      System.out.printf("%d.\treading:\t%s\n", i, testCases[i]);
      parser = new FormulaParser(new StringReader(testCases[i]));
      ASTNode node;
      try {
        node = parser.parse();
        System.out.printf("%d.\tLaTeX:\t%s\n", i, node.toLaTeX());

        JDialog d = new JDialog();
        d.setTitle("Node output");
        d.setModal(true);
View Full Code Here

Examples of org.sbml.jsbml.text.parser.FormulaParser

   * @throws ParseException
   *             If the given formula is not of valid format or cannot be
   *             parsed for other reasons.
   */
  public static ASTNode parseFormula(String formula) throws ParseException {
    FormulaParser parser = new FormulaParser(new StringReader(formula));
    return parser.parse();
  }
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.