edu.ufl.hcs.ppw.pdm.highlevel.ExpressionEvaluator Class Reference
Class to evaluate simple expressions.
More...
List of all members.
|
Public Member Functions |
|
void | init (ExpressionParser.ParseNode root) |
| | Sets the parse tree.
|
|
void | addVariable (String name, int val) |
| | Adds a substitution variable.
|
|
int | getValue () throws EvaluationException |
| | Gets the value.
|
|
int | calculate (ExpressionParser.ParseNode node) throws EvaluationException |
Static Public Member Functions |
|
static void | main (String[] args) |
| | Test harness.
|
Package Functions |
|
void | test (String input) |
Package Attributes |
|
ExpressionParser.ParseNode | root |
|
int | val |
|
boolean | calculated |
|
HashMap | variables |
Detailed Description
Class to evaluate simple expressions.
- Author:
- Adam leko
The documentation for this class was generated from the following file:
- javasrc/src/edu/ufl/hcs/ppw/pdm/highlevel/ExpressionEvaluator.java