Class PrintConsole
java.lang.Object
com.singularsys.jepexamples.consoles.Console
com.singularsys.jepexamples.consoles.PrintConsole
-
Nested Class Summary
Nested classes/interfaces inherited from class com.singularsys.jepexamples.consoles.Console
Console.JepPrintStream, Console.SPEC_ACTION
-
Field Summary
Fields inherited from class com.singularsys.jepexamples.consoles.Console
doubleFormat, history, jep, showHistory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Creates 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
getCommand, getPrompt, handleError, initialise, inputLoop, print, printFuns, printHelp, printIntroText, println, printOps, printStdHelp, printVars, processCommand, run, setAlteredCommand, setFormat, split, testSpecialCommands, toString
-
Constructor Details
-
PrintConsole
public PrintConsole()
-
-
Method Details
-
processEquation
Description copied from class:Console
Performs the required operation on a node. Typically, evaluates the node and prints the value.- Overrides:
processEquation
in 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()
-