public class ConstExprEvaluator extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
ConstExprEvaluator.Node |
protected class |
ConstExprEvaluator.Operator |
Modifier and Type | Field and Description |
---|---|
protected static ConstExprEvaluator.Operator[] |
operators |
Constructor and Description |
---|
ConstExprEvaluator()
creates an empty ConstExprEvaluator.
|
ConstExprEvaluator(String s)
creates a ConstExprEvaluator and assign the expression string.
|
Modifier and Type | Method and Description |
---|---|
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
|
protected static ConstExprEvaluator.Operator[] operators
public ConstExprEvaluator()
public ConstExprEvaluator(String s)
public void setExpression(String s)
public void reset()
public Double getValue()
public Double getVariable(String s)
protected ConstExprEvaluator.Operator[] getOperators()
Copyright © 2016 JacORB. All rights reserved.