Class NegFunction

  • All Implemented Interfaces:
    java.lang.Iterable<GroupingExpression>

    public class NegFunction
    extends FunctionNode
    This class represents a negate-function in a GroupingExpression. It evaluates to a number that equals the negative of the results of the argument.
    Author:
    Simon Thoresen Hult, bratseth
    • Constructor Detail

      • NegFunction

        public NegFunction​(GroupingExpression exp)
        Constructs a new instance of this class.
        Parameters:
        exp - The expression to evaluate, must evaluate to a number.