Package calculator.atoms.visitor


package calculator.atoms.visitor
  • Classes
    Class
    Description
    AtomCaster is an AtomVisitor whose goal is to cast the visited atom to the specified type and throws errors if this cast is impossible e.g a complex to an Integer
    AtomComparator is an AtomVisitor whose goal is to give the largest set of number between all visited types e.g. between an Integer, Real and Complex, the Complex type is the largest as both the Integer and Real are included in Complexes
    Visitor design pattern for atoms