public interface IExpressionEvaluator
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluateIdentifier(IExpressionEvaluatorContext context,
java.lang.String identifier)
Evaluates the identifier with the specified name.
|
java.lang.Object |
invokeFunction(IExpressionEvaluatorContext context,
java.lang.String name,
java.util.List<?> parameters)
Invokes the function with the specified name and parameters.
|
java.lang.Object evaluateIdentifier(IExpressionEvaluatorContext context, java.lang.String identifier)
context - A helper object that can be used to obtain error values, invoke predefined functions, and so on.identifier - The name of the identifier.IExpressionEvaluatorContext.getError(com.mindfusion.spreadsheet.expressions.ErrorType, java.lang.String) method. Any other value
will be interpreted as the identifier not being evaluated.java.lang.Object invokeFunction(IExpressionEvaluatorContext context, java.lang.String name, java.util.List<?> parameters)
To interpret a parameter as a CLR value, pass the parameter to one of
the following methods of the supplied IExpressionEvaluatorContext object:
toDouble,
toString,
toBool,
toDateTime, or
toTimeSpan. The context will attempt
to convert the parameter to the desired type and returns null if unsuccessful.
To check if a parameter is an error, call the ISERROR function of the core
evaluator.
context - A helper object that can be used to obtain error values, invoke predefined functions, and so on.name - The name of the function.parameters - The function parameters.IExpressionEvaluatorContext.getError(com.mindfusion.spreadsheet.expressions.ErrorType, java.lang.String) method. Any other value
will be interpreted as the function not being invoked.