Uses of Class
visitor.Visitor

Packages that use Visitor
  • Uses of Visitor in calculator

    Methods in calculator with parameters of type Visitor
    Modifier and Type
    Method
    Description
    void
    Expression.accept(Visitor v)
    accept is a method needed to implement the visitor design pattern
  • Uses of Visitor in calculator.atoms

    Methods in calculator.atoms with parameters of type Visitor
    Modifier and Type
    Method
    Description
    void
    Complex.accept(Visitor v)
     
    void
    IntegerAtom.accept(Visitor v)
    accept method to implement the visitor design pattern to traverse arithmetic expressions.
    void
    Rationnal.accept(Visitor v)
     
    void
    Real.accept(Visitor v)
    accept method to implement the visitor design pattern to traverse arithmetic expressions.
  • Uses of Visitor in calculator.functions

    Methods in calculator.functions with parameters of type Visitor
    Modifier and Type
    Method
    Description
    void
    BinaryFunction.accept(Visitor v)
    Accept method to implement the visitor design pattern to traverse arithmetic expressions.
    void
    UnaryFunction.accept(Visitor v)
    Accept method to implement the visitor design pattern to traverse arithmetic expressions.
  • Uses of Visitor in calculator.operations

    Methods in calculator.operations with parameters of type Visitor
    Modifier and Type
    Method
    Description
    void
    Operation.accept(Visitor v)
    Accept method to implement the visitor design pattern to traverse arithmetic expressions.
  • Uses of Visitor in visitor

    Subclasses of Visitor in visitor
    Modifier and Type
    Class
    Description
    class 
    Counter is a visitor that counts the numbers, operations, and depth in an arithmetic expression.
    class 
    Evaluation is a concrete visitor that serves to compute and evaluate the results of arithmetic expressions.
    class 
    Printer is a Visitor that converts arithmetic expressions into Strings, using a specified notation (prefix, infix or postfix).