Parser Objects

This interface encapsulates the functionality for parsing CLEM expressions.

p.parseExpression(expressionString, dataModel) : Expression

expressionString (string) : - the string to parse

dataModel (DataModel) : - the data model

Attempts to parse the string argument to an Expression. Parsing checks for syntax, lexical and semantic errors. The dataModel argument is used to check for fields referenced in the expression. Parsing using this method will fail if the string contains reference to Node or Stream related functions and values such as GlobalValues, Parameters and database functions.

Exceptions

ParserException: - if the string does not contain a parsable Expression.