Package org.gnu.readline
Class ReadlineLibrary
- java.lang.Object
-
- org.gnu.readline.ReadlineLibrary
-
public final class ReadlineLibrary extends java.lang.Object
This class implements a typesafe enumeration of the backing libraries.- Version:
- $Revision$
- Author:
- $Author$
-
-
Field Summary
Fields Modifier and Type Field Description static ReadlineLibrary
Editline
Constant for Editline implementation.static ReadlineLibrary
Getline
Constant for Getline implementation.static ReadlineLibrary
GnuReadline
Constant for GNU-Readline implementation.static ReadlineLibrary
PureJava
Constant for fallback, pure Java implementation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReadlineLibrary
byName(java.lang.String name)
Return ReadlineLibrary-object with given name.java.lang.String
getName()
Query name of backing library.
-
-
-
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
-
-