Class Evaluator.Node
Node class represents evaluation b-tree element
Inheritance
System.Object
Evaluator.Node
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 Node
Constructors
Node(String, Int32)
Declaration
public Node(string expression, int level)
Parameters
Type | Name | Description |
---|---|---|
System.String | expression | |
System.Int32 | level |
Properties
Condition
Boolean condition expression (subnode) used for conditional (ternary) operator
Declaration
public Evaluator.Node Condition { get; }
Property Value
Type | Description |
---|---|
Evaluator.Node |
Expression
This node sub-expression
Declaration
public string Expression { get; }
Property Value
Type | Description |
---|---|
System.String |
Left
Left b-tree branch, may be blank (in case of unary operators)
Declaration
public Evaluator.Node Left { get; }
Property Value
Type | Description |
---|---|
Evaluator.Node |
Level
Node depth level within expression b-tree
Declaration
public int Level { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Operator
Head operator performed on left and right b-tree branches
Declaration
public string Operator { get; }
Property Value
Type | Description |
---|---|
System.String |
Right
Right b-tree branch, used for unary operators
Declaration
public Evaluator.Node Right { get; }
Property Value
Type | Description |
---|---|
Evaluator.Node |
Methods
PrintTree()
Declaration
public string PrintTree()
Returns
Type | Description |
---|---|
System.String |