Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
O
- of(String, double) - Static method in class cs2110.MapVarTable
-
Create a MapVarTable associating `value1` with variable `name1`.
- of(String, double, String, double) - Static method in class cs2110.MapVarTable
-
Create a MapVarTable associating `value1` with variable `name1` and `value2` with `name2`.
- opCount() - Method in class cs2110.Application
-
Evaluating this node's function counts as 1 operation.
- opCount() - Method in class cs2110.Constant
-
No operations are required to evaluate a Constant's value.
- opCount() - Method in interface cs2110.Expression
-
Return the number of operations and unary functions contained in this expression.
- operate(double, double) - Method in interface cs2110.Operator
-
Return the result of evaluating the operation on left operand `operand1` and right operand `operand2`.
- Operator - Interface in cs2110
-
Represents a binary arithmetic operator on real numbers.
- optimize(VarTable) - Method in class cs2110.Application
-
If the argument can be optimized to a constant, then this node can be optimized to a constant by evaluating its function on the argument value.
- optimize(VarTable) - Method in class cs2110.Constant
-
Return self (a Constant is already fully optimized).
- optimize(VarTable) - Method in interface cs2110.Expression
-
Return an expression where all operations and function evaluations that only depend on constants or variables in `vars` are replaced by constants equal to their evaluated value.
- opValue() - Method in class cs2110.Token.Operator
-
Return the operator represented by this token.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form