public class TemplatedExpressionParser
Public Class TemplatedExpressionParser
public ref class TemplatedExpressionParser
Gemstone.IO.Parsing.TemplatedExpressionParser = function();
Type.createClass(
'Gemstone.IO.Parsing.TemplatedExpressionParser');
As an example, this parser can use a templated expression of the form:
{CompanyAcronym}_{DeviceAcronym}[?{SignalType.Source}=Phasor[-{SignalType.Suffix}{SignalIndex}]]:{Signal.Acronymn}
Parser also supports more complex C# style expressions using the "eval{}" function, e.g.:
eval{'{CompanyAcronym}'.Substring(0,3)}_{DeviceAcronym}eval{'[?{SignalType.Source}=Phasor[-{SignalType.Suffix}]]'.Length}
TemplatedExpressionParser | Creates a new TemplatedExpressionParser. |
TemplatedExpressionParser(Char, Char, Char, Char) | Creates a new TemplatedExpressionParser with desired delimiters. |
EndExpressionDelimiter | Gets the character that identifies the end of an expression. |
EndTokenDelimiter | Gets the character that identifies the end of a token. |
ReservedSymbols | Gets the reserved symbols - this includes all delimiters and expression operators. |
StartExpressionDelimiter | Gets the character that identifies the start of an expression. |
StartTokenDelimiter | Gets the character that identifies the beginning of a token. |
TemplatedExpression | Gets or sets the templated expression to use. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Execute | Executes replacements using provided substitutions dictionary on the currently defined TemplatedExpression value and optionally evaluates any expressions. |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |