JExpr dictionaries
The JExpr language can feature pre-defined dictionaries for certain parts of Smile that accept JExpr expressions for their configuration.
Dictionaries are a list of pre-defined functions. These functions can take zero or more arguments, each argument being a JExpr expression itself. The function will return an expression of a particular JExpr type (or may return null).
A function call in JExpr looks like the following:
parsers.parseDate("yyyy-MM-dd", $1);
In this example:
- parsers is the dictionary namespace that contains the function
- parseDate is the name of the function
- This function takes two arguments (both of string type), and returns a Java date/timestamp (java.util.Date) value
- Parentheses encapsulate all of the arguments
- Commas separate individual arguments