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: 1.3 $
- Author:
- $Author: Bablokb $
Method Summary |
static ReadlineLibrary |
byName(java.lang.String name)
Return ReadlineLibrary-object with given name. |
java.lang.String |
getName()
Query name of backing library. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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
Released under the LGPL, (c) Bernhard Bablok 1998-2001
Homepage: http://www.bablokb.de/java/readline.html