Package com.singularsys.jeptests.system
Class LatexTest.FunctionWithOptionalBrackets
java.lang.Object
com.singularsys.jeptests.system.LatexTest.FunctionWithOptionalBrackets
- All Implemented Interfaces:
PrintVisitor.PrintRulesI,Serializable
- Enclosing class:
LatexTest
public static class LatexTest.FunctionWithOptionalBrackets
extends Object
implements PrintVisitor.PrintRulesI
Prints a function with optional brackets.
Used for functions like cos, sin, etc. which
are typically written as
\cos x rather than \cos(x)
Bracket are added if the argument has more than one child
or the child has two or more children.- 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
-
FunctionWithOptionalBrackets
-
-
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
-