Package net.objecthunter.exp4j
Class Expression
java.lang.Object
net.objecthunter.exp4j.Expression
-
Constructor Summary
ConstructorsConstructorDescriptionExpression(Expression existing) Creates a new expression that is a copy of the existing one. -
Method Summary
Modifier and TypeMethodDescriptiondoubleevaluate()evaluateAsync(ExecutorService executor) setVariable(String name, double value) setVariables(Map<String, Double> variables) validate()validate(boolean checkVariablesSet)
-
Constructor Details
-
Expression
Creates a new expression that is a copy of the existing one.- Parameters:
existing- the expression to copy
-
-
Method Details
-
setVariable
-
setVariables
-
clearVariables
-
getVariableNames
-
validate
-
validate
-
evaluateAsync
-
evaluate
public double evaluate()
-