Class NegFunction

All Implemented Interfaces:
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 Details

    • NegFunction

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