Class Minus

  • All Implemented Interfaces:
    Expression

    public final class Minus
    extends java.lang.Object
    implements Expression
    • Method Detail

      • walk

        public void walk​(java.util.function.Consumer<Expression> consumer)
        Description copied from interface: Expression
        Traverse this expression.

        If this expression is a composite then all its sub-expressions will be traversed.

        Specified by:
        walk in interface Expression
        Parameters:
        consumer - will be called for each Expression contained within this Expression.
      • replace

        public Minus replace​(java.util.function.Function<LeafExpression,​LeafExpression> function)
        Description copied from interface: Expression
        Returns a Expression with LeafExpressions in this Expression replaced with values returned from the given function.
        Specified by:
        replace in interface Expression
        Parameters:
        function - returns the LeafExpression to use as a replacement for the LeafExpression it is called with, or null if the original LeafExpression should continue to be used.
        Returns:
        a new Expression with LeafExpressions in this Expression replaced with versions returned from function.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object