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 Token |
ShuntingYardExpressionTree.Node.token
Token contained in this node.
A token can be an operand, operator, function, variable, or constant. |
Modifier and Type | Field and Description |
---|---|
protected Stack<Token> |
ShuntingYardExpressionTree.postfix
Stack to hold the postfix (RPN) expression.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
ShuntingYardExpressionTree.formTree(ShuntingYardExpressionTree.Node node,
Token token)
Method to form the expression tree recursively.
|
Constructor and Description |
---|
Node(Token token)
Parameterized constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
Operand
The
Operand class represents the operands in the expression.It acts as a wrapper for double value operands. |
class |
Operator
The
Operator class represents the operators, functions, variables, and constants in the expression.It provides implementation for evaluation of the operators, functions, variables, and constants. Functions, variables, and constants are treated as operators as well with specialized evaluation techniques in order to maintain precedence and associativity. |
Copyright © 2019 Pratanu Mandal. All rights reserved.