Class Summary |
Addition |
Represents a + b, the addition of two expressions |
BinaryExpression |
The base class of any binary expression, e.g., a + b, a - b, or, in future
use, a < b and so on. |
Division |
Represents a / b, the division of two expressions |
Expression |
The base class of all arithmetic expressions, the evaluate
method uses the hook/template method value to return a Double
value, the template method returns a double. |
Multiplication |
Represents a x b, the multiplication of two expressions |
Negation |
Represents unary minus, e.g., -expression |
Number |
|
Subtraction |
|
UnaryExpression |
|
Variable |
A variable stores a value and can be used in an expression. |
VariableFactory |
Clients can use this class to obtain a unique variable per identifier
(avoiding a proliferation of objects) |