public interface IExpressionEvaluatorContext
| Modifier and Type | Method and Description |
|---|---|
IExpressionEvaluator |
getCoreEvaluator()
Gets the core evaluator.
|
int |
getCurrentColumn()
The column of the cell being evaluated.
|
int |
getCurrentRow()
The row of the cell being evaluated.
|
Worksheet |
getCurrentWorksheet()
The worksheet containing the cell being evaluated.
|
java.lang.Object |
getError(ErrorType errorType,
java.lang.String message)
Returns an error object of the specified type.
|
java.util.Locale |
getLocale()
Gets the current locale.
|
java.lang.Object |
getOldValue()
The old value of cell being evaluated.
|
Workbook |
getWorkbook()
Gets a reference to the parent workbook.
|
java.lang.Boolean |
toBool(java.lang.Object value)
Attempts to convert the specified value to a boolean.
|
com.mindfusion.common.DateTime |
toDateTime(java.lang.Object value)
Attempts to convert the specified value to a
DateTime. |
java.lang.Double |
toDouble(java.lang.Object value)
Attempts to convert the specified value to a double.
|
java.lang.String |
toString(java.lang.Object value)
Attempts to convert the specified value to a string.
|
com.mindfusion.common.Duration |
toTimeSpan(java.lang.Object value)
Attempts to convert the specified value to a TimeSpan.
|
java.lang.Object |
toValue(java.lang.Object value)
Attempts to evaluate the specified object.
|
IExpressionEvaluator getCoreEvaluator()
IExpressionEvaluator object identifying the core evaluator.java.lang.Object getError(ErrorType errorType, java.lang.String message)
This method can be used when a custom function needs to return an error.
errorType - One of the ErrorType constants identifying the type of the error.message - The message associated with the error.java.lang.Object toValue(java.lang.Object value)
value - The object to evaluate.java.lang.Double toDouble(java.lang.Object value)
This method is usually used when trying to interpret a parameter passed to a custom function.
value - The value to convert.java.lang.String toString(java.lang.Object value)
This method is usually used when trying to interpret a parameter passed to a custom function.
value - The value to convert.java.lang.Boolean toBool(java.lang.Object value)
This method is usually used when trying to interpret a parameter passed to a custom function.
value - The value to convert.com.mindfusion.common.DateTime toDateTime(java.lang.Object value)
DateTime.
This method is usually used when trying to interpret a parameter passed to a custom function.
value - The value to convert.DateTime value corresponding to the specified value, or null,
if value cannot be represented as DateTime.com.mindfusion.common.Duration toTimeSpan(java.lang.Object value)
This method is usually used when trying to interpret a parameter passed to a custom function.
value - The value to convert.TimeSpan value corresponding to the specified value, or null,
if value cannot be represented as TimeSpan.Workbook getWorkbook()
java.util.Locale getLocale()
Worksheet getCurrentWorksheet()
int getCurrentColumn()
int getCurrentRow()
java.lang.Object getOldValue()