: Returns a string representation of the AST
Since
3/23/2024
Group Soql Engine
Author Zackary Frazier
public left
public right
The id of the node, cannot be null
public id
String
The type of the node, cannot be null
public nodeType
String
SUPPRESSWARNINGS
: Constructor for a Node, not to be used directly
public Node(String nodeType, string id, Node left, Node right)
Name | Type | Description |
---|---|---|
nodeType | String | : String, the type of the node |
id | string | : String, the id of the node |
left | Node | : Node, the left child of the node |
right | Node | : Node, the right child of the node |
: Clones a node and all of its children, recursively
public Node deepClone()
: Node, the cloned tree
: Returns a string representation of the node by traversing the tree in pre-order
public override String toString()
String
: String, the string representation of the node