Interface ExpressionNode

    • Method Detail

      • exprSetParent

        void exprSetParent​(ExpressionNode n)
        This pair of methods are used to inform the node of its parent.
      • exprAddChild

        void exprAddChild​(ExpressionNode n,
                          int i)
        This method tells the node to add its argument to the node's list of children.
      • exprGetChild

        ExpressionNode exprGetChild​(int i)
        This method returns a child node. The children are numbered from zero, left to right.
      • exprGetNumChildren

        int exprGetNumChildren()
        Return the number of children the node has.