Class VarNode


public class VarNode extends TermNode
A node of an expression tree that represents a variable. A VarNode cannot have any children.
  • Constructor Details

    • VarNode

      public VarNode(String name, boolean negate)
  • Method Details

    • eval

      public double eval(VarMap v, FuncMap f)
      Returns the value associated with the variable name in the VarMap.
      Specified by:
      eval in class Expression