Package jwo.utils.expression

Utility classes for the processing of mathematical expression.

See:
          Description

Class Summary
MathEvaluator Evaluates a mathematical expression stored in an postfix stack (created using MathParser).
MathOperator Stores an enumerated list of operators that may be parsed by the MathParser.
MathParser Converts a mathematical expression (using 'normal' infix ordering) into a postfixed stack.
MathToken Stores an enumerated list of tokens that may be parsed by the MathParser.
Token A simple token for storing a type, value pair.
Tokenizer A tokenizer that uses regular expressions to parse text.
 

Exception Summary
ParseException Exception for reporting problems with expression parsing.
TokenNotFoundException Exception for reporting missing tokens.
 

Package jwo.utils.expression Description

Utility classes for the processing of mathematical expression. This code is modification of original code described at www.devx.com/premier/mgznarch/javapro/2001/05may01/ps0105/ps0105.asp by Daniel Savarese. Modifications allow unary operators (e.g. sin(), cos(), tan()) and variable substitutions (x,y,z0,z1) to be handled.