Implements a predictive parser for dynamic expressions.<q ref="core.gml:Object">Object</q>(c) SAP AG 2003-2006. All rights reserved.
constants of data type - arguments of function and return type.
Indicates whether the value is an expression that starts with '='.
Gets the list of dependencies found in the expression.
Gets the last parsing error, if any.
Indicates whether the expression is a more complex expression.
Indicates whether the expression is empty.
Indicates whether the expression is a simple field reference.
Indicates whether the expression is a foreign field reference.
Indicates whether the expression is a simple literal.
Indicates whether the expression need parse for UI (for displaying it).
Gets the source expression string.
consts of function type.
Gets the last parsing error, if any.
add a function/operator to the list of recently used function in dynamic expr editor.function/operator.
Clears the parser's context node.
Add the text and its tType into the translation map.The text to be added into the translation map.The tType of the text.The text key.
Get the DE dependencies and return in a collection:
{
[infosetID1][fid1]=true
[fid2]=true
[fid3]=true
[infosetID2][fid5]=true
[fid8]=true
[fid9]=true
...
}.
return the list of recently used functions in dynamic expr editor.
clear the comments within from the expression
Return: array of the expression itself and its comments.expression to be devided to expression and comments.
handle names with special chars:
for [ . @ chars - add \ before them and also add [] around the name
throw error when must have [] wraping the text
Return: string - the altered name,.string to check.if to extract the name from [].
Validates a literal expression according to the expected type.The source expression string.The expected expression type.Returns true expected type is the literal type.
Parses the nest token in the expression, check what is the next token in the expression.
Parses a given expression.The source expression string.The method invokes the predictive parser and updates the parser properties according to the results.
clear the list of recently used functions in dynamic expr editor.
Sets the parser context
Notice! If you'll call the setParseById method - call it after setContext (or the setDynExpContext rule)
because setContext will override the parseById flag.The context infoset enumerator.The context infoset.The context field.optional - true by default - if the expression is by field ID.
Sets the parser's context descriptor, which is used to help generate language-specific context references.The context descriptor name.
Sets the parser's context field.The context field.
Sets the parser's context fields from an infoset.The context infoset.
Sets the parser's context infoset enumerator.The context infoset enumerator.
Sets the parser's context node.The context node full name.
Sets the property name and the translation type for the property that holds the expression.A GML element that contains the property.The propertyName.The type (XTIT,XBTN...).
Sets the parser context object.The Dynamic Expressions context object.
Sets expected expression type (affects validation during parsing).One of supported data types.
determines whether FORMAT macro is translatable, meaning replaces its text with a translate key.
For freestyle - it will be false, for pattern - it will be true (default).if FORMAT macro is translatable.
Sets the GIF files location, needed by the editor that uses this class.The Dynmaic Expressions icons location.
parse the expression by the field id and not name
Notice! call this method only after setContext, because setContext (or the setDynExpContext rule) will override the flag.parse by name or by id.
split the string by the given seperator.string to split.seperator char.array which will hold the seperated names.if to break the loop after first found.