public class DPrintVisitor extends PrintVisitor
PrintVisitor.PrintRulesI, PrintVisitor.StdElePrintRule, PrintVisitor.StdListPrintRule
Modifier and Type | Field and Description |
---|---|
static int |
PRINT_PARTIAL_EQNS |
static int |
PRINT_VARIABLE_EQNS |
COMPLEX_I, format, fp, FULL_BRACKET, FunctionArgSep, FunLBracket, FunRBracket, LBracket, mode, NULL_PRINT_VISITOR, ot, RBracket, sb, specialFunRules, specialRules, specialVarName
Constructor and Description |
---|
DPrintVisitor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
testLeft(Operator top,
Node lhs)
Test if brackets are necessary around left hand side.
|
protected boolean |
testMid(Operator top,
Node rhs) |
protected boolean |
testRight(Operator top,
Node rhs)
Tests if closing brackets are necessary.
|
java.lang.Object |
visit(ASTVarNode node,
java.lang.Object data)
Prints the variable or its equation.
|
addSpecialRule, addSpecialRule, addSpecialVarName, append, formatValue, formatValue, getFunArgSep, getFunLBracket, getFunRBracket, getLBracket, getLightWeightInstance, getMaxLen, getMode, getMode, getRBracket, init, print, print, printBrackets, println, println, printNoBrackets, printWrap, setFunArgSep, setFunLBracket, setFunRBracket, setLBracket, setMaxLen, setMode, setNumberFormat, setRBracket, toString, visit, visit, visit
public static final int PRINT_PARTIAL_EQNS
public static final int PRINT_VARIABLE_EQNS
public java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws JepException
visit
in interface ParserVisitor
visit
in class PrintVisitor
JepException
protected boolean testLeft(Operator top, Node lhs)
PrintVisitor
testLeft
in class PrintVisitor
top
- The current operator being printed.lhs
- The node on the left hand side.protected boolean testMid(Operator top, Node rhs)
testMid
in class PrintVisitor
protected boolean testRight(Operator top, Node rhs)
PrintVisitor
testRight
in class PrintVisitor
top
- The operator.rhs
- The right hand side node.Copyright © 2018 Singular Systems http://www.singularsys.com/jep