Class Evaluator
Inheritance
System.Object
Evaluator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Text
Assembly: Azos.dll
Syntax
public sealed class Evaluator
Constructors
Evaluator(String)
Declaration
public Evaluator(string expression)
Parameters
Type | Name | Description |
---|---|---|
System.String | expression |
Properties
Expression
Expression beeing evaluated
Declaration
public string Expression { get; }
Property Value
Type | Description |
---|---|
System.String |
NoStringsExpression
Expression with all strings replaced with tokens
Declaration
public string NoStringsExpression { get; }
Property Value
Type | Description |
---|---|
System.String |
Root
Root node of expression evaluation tree
Declaration
public Evaluator.Node Root { get; }
Property Value
Type | Description |
---|---|
Evaluator.Node |
Methods
Evaluate(IdentifierLookup)
Evaluate expression and return result - either string or numerical value
Declaration
public string Evaluate(IdentifierLookup lookup = null)
Parameters
Type | Name | Description |
---|---|---|
IdentifierLookup | lookup |
Returns
Type | Description |
---|---|
System.String |
PrintTree()
Returns b-tree traversal in a string form
Declaration
public string PrintTree()
Returns
Type | Description |
---|---|
System.String |
Events
OnIdentifierLookup
Event which is fired upon leaf token resolution during evaluation, used to resolve host variables
Declaration
public event IdentifierLookup OnIdentifierLookup
Event Type
Type | Description |
---|---|
IdentifierLookup |