Interface Expression

All Known Subinterfaces:
Atom
All Known Implementing Classes:
Arccosinus, Arcsinus, Arctangente, BinaryFunction, Complex, Cosh, Cosinus, Divides, IntegerAtom, Ln, Log, Minus, Operation, Plus, Power, Rationnal, Real, Sinh, Sinus, Sqrt, Tangente, Tanh, Times, UnaryFunction

public interface Expression
Expression is an abstract class that represents arithmetic expressions. It has two concrete subclasses Operation and Atoms.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept is a method needed to implement the visitor design pattern
  • Method Details

    • accept

      void accept(Visitor v)
      accept is a method needed to implement the visitor design pattern
      Parameters:
      v - The visitor object being passed as a parameter