Package org.dawnsci.jexl
Class ExpressionEvaluatorImpl
java.lang.Object
org.dawnsci.jexl.ExpressionEvaluatorImpl
- All Implemented Interfaces:
IExpressionEvaluator
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
ExpressionEvaluatorImpl
public ExpressionEvaluatorImpl()
-
-
Method Details
-
setExpression
Description copied from interface:IExpressionEvaluatorSet and parse the current expression- Specified by:
setExpressionin interfaceIExpressionEvaluator- Parameters:
expr-
-
evaluate
Description copied from interface:IExpressionEvaluatorEvaluate the current value from the passed in values.- Specified by:
evaluatein interfaceIExpressionEvaluator- Parameters:
vals-- Returns:
- Throws:
Exception
-
isValidSyntax
public boolean isValidSyntax()Description copied from interface:IExpressionEvaluatorReturns true if the expression is in valid syntax, false otherwise.- Specified by:
isValidSyntaxin interfaceIExpressionEvaluator- Returns:
-