Package org.dawnsci.jexl
Interface IExpressionEvaluator
- All Known Implementing Classes:
ExpressionEvaluatorImpl
public interface IExpressionEvaluator
Use to evaluate the same expression many times.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleEvaluate the current value from the passed in values.booleanReturns true if the expression is in valid syntax, false otherwise.voidsetExpression(String expr) Set and parse the current expression
-
Method Details
-
setExpression
Set and parse the current expression- Parameters:
expr-
-
evaluate
Evaluate the current value from the passed in values.- Parameters:
vals-- Returns:
- Throws:
Exception
-
isValidSyntax
boolean isValidSyntax()Returns true if the expression is in valid syntax, false otherwise.- Returns:
-