Class PrintConsole

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

public class PrintConsole extends Console
  • 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()