Class LogicExpression.Operator

    • Method Detail

      • getOperator

        protected abstract java.lang.String getOperator()
        Override to provide text symbol for this operator. Used in toString.
        Returns:
        operator name
      • toString

        public java.lang.String toString()
        Produce an expression for this branch of the tree.
        Overrides:
        toString in class java.lang.Object
        Returns:
        expression representing this branch
      • getChildren

        public java.util.Set<LogicExpression.Node> getChildren()
        Get an unmodifiable copy of the node's children.
        Returns:
        unmodifiable set of node children
      • addChild

        protected void addChild​(LogicExpression.Node child)
        Adds a node to the collection of children.
        Parameters:
        child - the new Node