Uses of Class
calculator.atoms.visitor.AtomVisitor
Packages that use AtomVisitor
-
Uses of AtomVisitor in calculator.atoms
Methods in calculator.atoms with parameters of type AtomVisitorModifier and TypeMethodDescriptionvoidAtom.accept(AtomVisitor aV) accepts the specific AtomVisitorvoidComplex.accept(AtomVisitor v) voidIntegerAtom.accept(AtomVisitor v) accept method to implement the visitor design pattern to traverse Atoms.voidRationnal.accept(AtomVisitor v) voidReal.accept(AtomVisitor v) accept method to implement the visitor design pattern to traverse arithmetic expressions. -
Uses of AtomVisitor in calculator.atoms.visitor
Subclasses of AtomVisitor in calculator.atoms.visitorModifier and TypeClassDescriptionclassAtomCaster 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 IntegerclassAtomComparator 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