Class GeneratedFormulaParser
- java.lang.Object
-
- org.pentaho.reporting.libraries.formula.parser.GeneratedFormulaParser
-
- All Implemented Interfaces:
GeneratedFormulaParserConstants
- Direct Known Subclasses:
FormulaParser
public abstract class GeneratedFormulaParser extends Object implements GeneratedFormulaParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Token
token
GeneratedFormulaParserTokenManager
token_source
-
Fields inherited from interface org.pentaho.reporting.libraries.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, L_BRACE, L_BRACKET, L_PAREN, LETTER, LT, LT_EQUALS, MANTISSA, MINUS, MULT, NEWLINE, NON_ZERO_DIGIT, NONQUOTE_CHARACTER, NONQUOTE_LOOKUP, NOT_EQUALS, NULL, PERCENT, PERIOD, PIPE, PLUS, POW, QUEST, QUOTE, R_BRACE, R_BRACKET, R_PAREN, SEMICOLON, SIGN, STRING_LITERAL, tokenImage, UNSIGNED_INTEGER, UNSIGNED_NUMERIC_LITERAL, WHITESPACE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeneratedFormulaParser()
GeneratedFormulaParser(InputStream stream)
GeneratedFormulaParser(Reader stream)
GeneratedFormulaParser(GeneratedFormulaParserTokenManager tm)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ParsePosition
createPosition(Token token)
void
disable_tracing()
void
enable_tracing()
ParseException
generateParseException()
LValue
getExpression()
InfixOperator
getInfixOperator()
LValue
getLValue()
Token
getNextToken()
protected abstract OperatorFactory
getOperatorFactory()
PostfixOperator
getPostfixOperator()
PrefixOperator
getPrefixOperator()
Token
getToken(int index)
LValue
parseArray()
LValue
parseFunction(String name, ParsePosition parsePosition)
LValue[]
parseRow()
void
ReInit(InputStream stream)
void
ReInit(Reader stream)
void
ReInit(GeneratedFormulaParserTokenManager tm)
Term
startTail(LValue retval)
-
-
-
Field Detail
-
token_source
public GeneratedFormulaParserTokenManager token_source
-
token
public Token token
-
jj_nt
public Token jj_nt
-
-
Constructor Detail
-
GeneratedFormulaParser
protected GeneratedFormulaParser()
-
GeneratedFormulaParser
public GeneratedFormulaParser(InputStream stream)
-
GeneratedFormulaParser
public GeneratedFormulaParser(Reader stream)
-
GeneratedFormulaParser
public GeneratedFormulaParser(GeneratedFormulaParserTokenManager tm)
-
-
Method Detail
-
getOperatorFactory
protected abstract OperatorFactory getOperatorFactory()
-
createPosition
protected ParsePosition createPosition(Token token)
-
getExpression
public final LValue getExpression() throws ParseException
- Throws:
ParseException
-
startTail
public final Term startTail(LValue retval) throws ParseException
- Throws:
ParseException
-
getLValue
public final LValue getLValue() throws ParseException
- Throws:
ParseException
-
parseArray
public final LValue parseArray() throws ParseException
- Throws:
ParseException
-
parseRow
public final LValue[] parseRow() throws ParseException
- Throws:
ParseException
-
parseFunction
public final LValue parseFunction(String name, ParsePosition parsePosition) throws ParseException
- Throws:
ParseException
-
getPrefixOperator
public final PrefixOperator getPrefixOperator() throws ParseException
- Throws:
ParseException
-
getPostfixOperator
public final PostfixOperator getPostfixOperator() throws ParseException
- Throws:
ParseException
-
getInfixOperator
public final InfixOperator getInfixOperator() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
-
ReInit
public void ReInit(Reader stream)
-
ReInit
public void ReInit(GeneratedFormulaParserTokenManager tm)
-
getNextToken
public final Token getNextToken()
-
getToken
public final Token getToken(int index)
-
generateParseException
public ParseException generateParseException()
-
enable_tracing
public final void enable_tracing()
-
disable_tracing
public final void disable_tracing()
-
-