org.jacorb.idl
public class ConstExprEvaluator extends Object
Version: $Id: ConstExprEvaluator.java,v 1.6 2006/06/02 13:02:56 alphonse.bendt Exp $
Nested Class Summary | |
---|---|
protected class | ConstExprEvaluator.Node |
protected class | ConstExprEvaluator.Operator |
Field Summary | |
---|---|
protected static ConstExprEvaluator.Operator[] | operators |
Constructor Summary | |
---|---|
ConstExprEvaluator()
creates an empty ConstExprEvaluator.
| |
ConstExprEvaluator(String s)
creates a ConstExprEvaluator and assign the expression string. |
Method Summary | |
---|---|
protected ConstExprEvaluator.Operator[] | getOperators() |
Double | getValue()
evaluates and returns the value of the expression |
Double | getVariable(String s)
gets the variable's value that was assigned previously |
void | reset()
resets the evaluator |
void | setExpression(String s)
sets the expression |