|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lsmp.djep.xjep.DoNothingVisitor
org.lsmp.djep.xjep.ErrorCatchingVisitor
org.lsmp.djep.xjep.PrintVisitor
org.lsmp.djep.djep.DPrintVisitor
public class DPrintVisitor
An extension of PrintVisitor which will print the equations of a variable if required. The behaviours of this class is determined by two modes PRINT_PARTIAL_EQNS and PRINT_VARIABLE_EQNS. When a variable or partial derivative is encountered then its equation may be printed. By default equations for PartialDerivatives are printed but equations for normal derivatives are not. TODO might want to print eqn for y=sin(x) but not x=3
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.lsmp.djep.xjep.PrintVisitor |
---|
PrintVisitor.PrintRulesI |
Field Summary | |
---|---|
static int |
PRINT_PARTIAL_EQNS
|
static int |
PRINT_VARIABLE_EQNS
|
Fields inherited from class org.lsmp.djep.xjep.PrintVisitor |
---|
COMPLEX_I, format, FULL_BRACKET, mode, sb |
Constructor Summary | |
---|---|
DPrintVisitor()
|
Method Summary | |
---|---|
java.lang.Object |
visit(ASTVarNode node,
java.lang.Object data)
Prints the variable or its equation. |
Methods inherited from class org.lsmp.djep.xjep.PrintVisitor |
---|
addSpecialRule, append, formatValue, formatValue, getMaxLen, getMode, getMode, print, print, println, println, setMaxLen, setMode, setNumberFormat, toString, visit, visit |
Methods inherited from class org.lsmp.djep.xjep.ErrorCatchingVisitor |
---|
acceptCatchingErrors, addError, clearErrors, getError, getErrorsMessage, hasErrors |
Methods inherited from class org.lsmp.djep.xjep.DoNothingVisitor |
---|
acceptChildrenAsArray, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PRINT_PARTIAL_EQNS
public static final int PRINT_VARIABLE_EQNS
Constructor Detail |
---|
public DPrintVisitor()
Method Detail |
---|
public java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws ParseException
visit
in interface ParserVisitor
visit
in class PrintVisitor
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |