Class BigDecimalConsole

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

public class BigDecimalConsole extends Console
  • Constructor Details

    • BigDecimalConsole

      public BigDecimalConsole()
  • Method Details

    • main

      public static void main(String[] args)
      Parameters:
      args -
    • initialise

      public void initialise()
      Description copied from class: Console
      sets up all the needed objects.
      Overrides:
      initialise in class Console
    • getPrompt

      public String getPrompt()
      Description copied from class: Console
      Prints the prompt string.
      Overrides:
      getPrompt in class Console
    • testSpecialCommands

      public Console.SPEC_ACTION testSpecialCommands(String command)
      Description copied from class: Console
      Checks for special commands. For example a subclass may have a verbose mode switched on of off using the command
       verbose on
       

      This method can be used detected this input, perform required actions and skip normal processing by returning true.

      In general subclasses should call the superclass methods to test for special commands that class implements

      Overrides:
      testSpecialCommands in class Console
      Returns:
      SPEC_ACTION.CONTINUE - continue processing this equation, SPEC_ACTION.BREAK - stop processing this equation and get the next line of input, SPEC_ACTION.ALTERED - the input text has been altered, SPEC_ACTION.EXIT stop the program
      See Also:
    • printHelp

      public void printHelp()
      Description copied from class: Console
      Print help message.
      Overrides:
      printHelp in class Console