Package com.singularsys.jepexamples.consoles

# Class PrintConsole

java.lang.Object
com.singularsys.jepexamples.consoles.Console
com.singularsys.jepexamples.consoles.PrintConsole

public class PrintConsole extends Console
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
  Constructor
  Description
  `PrintConsole()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `main(String[] args)`
  Creates a new Console object and calls run()
  `Object`
  `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`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PrintConsole

    public PrintConsole()

- ## Method Details

  - ### processEquation

    public Object processEquation(Node node) throws JepException
    Description copied from class: `Console`
    Performs the required operation on a node. Typically, evaluates the node and prints the value.
    Overrides:
      `processEquation` in class `Console`
    Parameters:
      `node` - Node representing expression
    Returns:
      The result of the calculation
    Throws:
      `JepException` - if a Parse or evaluation error

  - ### main

    public static void main(String[] args)
    Creates a new Console object and calls run()