org.jfree.formula.parser

Class FormulaParser

Implemented Interfaces:
GeneratedFormulaParserConstants

public class FormulaParser
extends GeneratedFormulaParser

========================================= LibFormula : a free Java formula library ========================================= Project Info: http://reporting.pentaho.org/libformula/ (C) Copyright 2006-2007, by Pentaho Corporation and Contributors. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. [Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries.] ------------ $Id: FormulaParser.java,v 1.8 2007/06/10 13:35:47 taqua Exp $ ------------ (C) Copyright 2006-2007, by Pentaho Corporation.

Field Summary

Fields inherited from class org.jfree.formula.parser.GeneratedFormulaParser

jj_nt, token, token_source

Fields inherited from interface org.jfree.formula.parser.GeneratedFormulaParserConstants

APPROXIMATE_NUMERIC_LITERAL, BINARY_DIGIT, COLON, COLUMN_LOOKUP, COMMA, CONCAT, DEFAULT, DIGIT, DIV, DQUOTE, EOF, EQUALS, EXACT_NUMERIC_LITERAL, EXPONENT_PART, GT, GT_EQUALS, HEX_DIGIT, IDENTIFIER, LETTER, LT, LT_EQUALS, L_BRACE, L_BRACKET, L_PAREN, MANTISSA, MINUS, MULT, NEWLINE, NONQUOTE_CHARACTER, NONQUOTE_LOOKUP, NON_ZERO_DIGIT, NOT_EQUALS, NULL, PERCENT, PERIOD, PIPE, PLUS, POW, QUEST, QUOTE, R_BRACE, R_BRACKET, R_PAREN, SEMICOLON, SIGN, STRING_LITERAL, UNSIGNED_INTEGER, UNSIGNED_NUMERIC_LITERAL, WHITESPACE, tokenImage

Constructor Summary

FormulaParser()

Method Summary

protected OperatorFactory
getOperatorFactory()
static void
main(String[] args)
LValue
parse(String formula)

Methods inherited from class org.jfree.formula.parser.GeneratedFormulaParser

ReInit, ReInit, ReInit, ReInit, disable_tracing, enable_tracing, generateParseException, getExpression, getInfixOperator, getLValue, getNextToken, getOperatorFactory, getPostfixOperator, getPrefixOperator, getToken, parseArray, parseFunction, parseRow, startTail

Constructor Details

FormulaParser

public FormulaParser()

Method Details

getOperatorFactory

protected OperatorFactory getOperatorFactory()
Overrides:
getOperatorFactory in interface GeneratedFormulaParser

main

public static void main(String[] args)
            throws ParseException,
                   EvaluationException

parse

public LValue parse(String formula)
            throws ParseException