Class InterpreterHistory

java.lang.Object
com.pnfsoftware.jeb.util.interpreter.InterpreterHistory
All Implemented Interfaces:
IAsciiable

public class InterpreterHistory extends Object implements IAsciiable
Interpreter history objects, containing the list of commands previously issued to the interpreter.
  • Constructor Details

    • InterpreterHistory

      public InterpreterHistory()
      Create an empty interpreter history.
    • InterpreterHistory

      public InterpreterHistory(String historyData)
      Create an interpreter history from encoded history data.
      Parameters:
      historyData - encoded history data
  • Method Details

    • encode

      public String encode()
      Encode this history as text.
      Specified by:
      encode in interface IAsciiable
      Returns:
      encoded history data
    • get

      public ItemHistory<String> get()
      Get the underlying item history.
      Returns:
      command history