Class RationalDivisionPrintRule
java.lang.Object
com.singularsys.extensions.field.implementations.RationalDivisionPrintRule
- All Implemented Interfaces:
PrintVisitor.PrintRulesI,Serializable
A special rule for printing divisions involving rational numbers.
This ensures that if we have an expression like
x/(3/5)
where the 3/5 is a Rational constant then it is printed as
x/(3/5) and not x/3/5.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(Node node, PrintVisitor pv) The method called to append data for the rule.
-
Constructor Details
-
RationalDivisionPrintRule
public RationalDivisionPrintRule()
-
-
Method Details
-
append
Description copied from interface:PrintVisitor.PrintRulesIThe method called to append data for the rule.- Specified by:
appendin interfacePrintVisitor.PrintRulesI- Parameters:
node- the node to printpv- the PrintVisitor- Throws:
JepException- on error
-