Uses of Class
calculator.operations.Operation
Packages that use Operation
-
Uses of Operation in calculator.atoms
Methods in calculator.atoms with parameters of type OperationModifier and TypeMethodDescriptionApplies an operation between two atoms of the same concrete type The function supposes that both atoms are of the same concrete typeapplies an operation between two IntegerAtomapplies an operation between two Reals -
Uses of Operation in calculator.operations
Subclasses of Operation in calculator.operationsModifier and TypeClassDescriptionfinal classThis class represents the arithmetic division operation "/".final classThis class represents the arithmetic operation "-".final classThis class represents the arithmetic sum operation "+".final classfinal classThis class represents the arithmetic multiplication operation "*". -
Uses of Operation in visitor
Modifier and TypeMethodDescriptionvoidVisit an operation: increments the operation count, then recursively visits all child expressions to accumulate counts.voidUse the visitor design pattern to visit an operationvoidThe visit method for Operation.abstract voidThe Visitor can traverse an operation (a subtype of Expression)