ExpressionEvaluator Methods |
The ExpressionEvaluator type exposes the following members.
Name | Description | |
---|---|---|
Evaluate |
Evaluates the expression and returns the result. Sets the result of security check into MacroEvalParameters object.
| |
EvaluateChild |
Evaluates the child expression (uses the same context, does not create a child context).
| |
EvaluateInternal |
Evaluates the expression and returns the result.
| |
GetDebugIndent |
Returns the indentation of the debug item (counts deepness withing blocks {...})
| |
HasNumberOfChildren |
Returns true if the current expression node has exactly specified number of children.
| |
CheckForTimeout |
Checks whether the evaluation time did not exceed the specified limit.
| |
IsEnumObjectEqual |
Compares the given Enum object with any object. If the object is not enum of the same type, then compares it according its values (integer enum with integer, otherwise as text constants).
| |
IsEqual |
Returns true if first parameter is equal to the second. Handles several specialities:
1) Guid is equal also to string representation of GUID (case insensitive regardless the context setting).
2) Simple datatypes are equal to their ToString representation.
3) InfoObject is equal also to string constant if it's either its display name or code name.
4) Two info objects are equal when they have same object type and same ID.
5) Empty string is equal to null.
| |
IsInfoInfoEqual |
Returns true if two Info objects are equal (have same object type and ID).
| |
IsMethodWithName |
Returns true if the type of current expression is MethodCall with specified name.
| |
IsObjectStringEqual |
Returns true if given object has code name or display name equal to specified name.
| |
IsStringStringEqual |
Returns true if the two strings are equal. Empty string is equal to null.
| |
UpdateEvaluationContextFromParameters |
Reads all the inline macro parameters and modifies the default evaluation context accordingly.
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |