Package | Description |
---|---|
tk.pratanumandal.expr4j.shuntingyard |
The
tk.pratanumandal.expr4j.shuntingyard package contains Shunting Yard implementations for expression evaluation. |
tk.pratanumandal.expr4j.token |
The
tk.pratanumandal.expr4j.token package contains all the tokens that form an expression. |
Modifier and Type | Field and Description |
---|---|
protected Stack<Operand> |
ShuntingYardDualStack.operandStack
Stack to hold the operands.
|
Modifier and Type | Method and Description |
---|---|
protected Operand |
ShuntingYardExpressionTree.evaluate(ShuntingYardExpressionTree.Node node)
Method to recursively evaluate the expression tree and return the result as an operand.
|
protected Operand |
ShuntingYardDualStack.evaluateExpr(String expr)
Method to evaluate the expression string and return the result as an operand.
|
Modifier and Type | Method and Description |
---|---|
Operand |
Function.evaluate(Operand... operands)
Method invoked to evaluate the function.
|
Operand |
Operator.evaluate(Operand... operands)
Method to evaluate this operator, function, variable, or constant.
It takes a variable number of operands as parameter depending on the number of operands required for this operator. |
Modifier and Type | Method and Description |
---|---|
Operand |
Function.evaluate(Operand... operands)
Method invoked to evaluate the function.
|
Operand |
Operator.evaluate(Operand... operands)
Method to evaluate this operator, function, variable, or constant.
It takes a variable number of operands as parameter depending on the number of operands required for this operator. |
Copyright © 2019 Pratanu Mandal. All rights reserved.