Class ReadlineLibrary


  • public final class ReadlineLibrary
    extends java.lang.Object
    This class implements a typesafe enumeration of the backing libraries.
    Version:
    $Revision$
    Author:
    $Author$
    • Field Detail

      • PureJava

        public static final ReadlineLibrary PureJava
        Constant for fallback, pure Java implementation.
      • GnuReadline

        public static final ReadlineLibrary GnuReadline
        Constant for GNU-Readline implementation.
      • Editline

        public static final ReadlineLibrary Editline
        Constant for Editline implementation.
      • Getline

        public static final ReadlineLibrary Getline
        Constant for Getline implementation.
    • Method Detail

      • getName

        public java.lang.String getName()
        Query name of backing library.
        Returns:
        Name of backing library, or "PureJava", in case fallback implementation is used.
      • byName

        public static ReadlineLibrary byName​(java.lang.String name)
        Return ReadlineLibrary-object with given name.
        Returns:
        one of the predefined constants