Class AddNode


public class AddNode extends OpNode
A node of an expression tree, represented by the symbol "+".
  • Constructor Details

  • Method Details

    • eval

      public double eval(VarMap v, FuncMap f)
      Adds the evaluation of the left side to the evaluation of the right side and returns the result.
      Specified by:
      eval in class Expression
    • getSymbol

      public String getSymbol()
      Description copied from class: OpNode
      Returns the text symbol that represents the operation.
      Specified by:
      getSymbol in class OpNode