Class JLine2Talker

java.lang.Object
net.sf.saxon.gizmo.JLine2Talker
All Implemented Interfaces:
Talker

public class JLine2Talker extends Object implements Talker
Handles terminal interaction for Gizmo using the JLine2 library: https://github.com/jline/jline2
  • Field Details

  • Constructor Details

  • Method Details

    • exchange

      public String exchange(String message)
      Send some output to the user and get some input back
      Specified by:
      exchange in interface Talker
      Parameters:
      message - output to be sent to the user
      Returns:
      the user's response
    • setAutoCompletion

      public void setAutoCompletion(List<String> candidates)
      Specified by:
      setAutoCompletion in interface Talker