Class PrintConsole
java.lang.Object
com.singularsys.jepexamples.consoles.Console
com.singularsys.jepexamples.consoles.PrintConsole
A console which prints the equation before evaluating it.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.singularsys.jepexamples.consoles.Console
Console.JepOutputStream, Console.JepPrintStream, Console.NodeRes, Console.SPEC_ACTION -
Field Summary
Fields inherited from class com.singularsys.jepexamples.consoles.Console
altered, doubleFormat, history, jep, showHistory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCreates a new Console object and calls run()processEquation(Node node) Performs the required operation on a node.Methods inherited from class com.singularsys.jepexamples.consoles.Console
clearVars, finaliseCommand, getCommand, getHistory, getJep, getPrompt, handleError, initialise, inputLoop, parseEvaluate, print, printFunctionEntry, printFuns, printHelp, printHistory, printIntroText, println, printOps, printStdHelp, printVars, processCommand, run, setAlteredCommand, setEvaluator, setFormat, setFormat, setIndexShift, setMonitor, showCalls, showTree, split, testSpecialCommands, toString
-
Constructor Details
-
PrintConsole
public PrintConsole()
-
-
Method Details
-
processEquation
Description copied from class:ConsolePerforms the required operation on a node. Typically, evaluates the node and prints the value.- Overrides:
processEquationin classConsole- Parameters:
node- Node representing expression- Returns:
- The result of the calculation
- Throws:
JepException- if a Parse or evaluation error
-
main
Creates a new Console object and calls run()
-