Package org.openlca.expressions
Class FormulaParser
java.lang.Object
org.openlca.expressions.FormulaParser
- All Implemented Interfaces:
FormulaParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stack<Expression>protected FunctionFactoryNext token.Current token.Generated Token Manager.protected List<VariableFunction> -
Constructor Summary
ConstructorsConstructorDescriptionFormulaParser(InputStream stream) Constructor with InputStream.FormulaParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingFormulaParser(Reader stream) Constructor.FormulaParser(Reader reader, FunctionFactory functionFactory) Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcompare()final voidDisable tracing.final voidelement()final voidEnable tracing.final voidexpand()final voidfunction()Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final voidfinal voidfinal voidfinal voidparse()final voidpower()final voidrealsum()voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final voidterm()final voidunary()
-
Field Details
-
argStack
-
functionFactory
-
variables
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
FormulaParser
-
FormulaParser
Constructor with InputStream. -
FormulaParser
Constructor with InputStream and supplied encoding -
FormulaParser
Constructor. -
FormulaParser
Constructor with generated Token Manager.
-
-
Method Details
-
getExpression
-
getVariables
-
parse
- Throws:
ParseException
-
expand
- Throws:
ParseException
-
logicalOr
- Throws:
ParseException
-
logicalXor
- Throws:
ParseException
-
logicalAnd
- Throws:
ParseException
-
compare
- Throws:
ParseException
-
realsum
- Throws:
ParseException
-
term
- Throws:
ParseException
-
power
- Throws:
ParseException
-
unary
- Throws:
ParseException
-
element
- Throws:
ParseException
-
function
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-