org.jruby.ext
Class Readline
java.lang.Object
org.jruby.ext.Readline
public class Readline
- extends java.lang.Object
- Author:
- Ola Bini, Damian Steer, Koichiro Ohba
Method Summary |
static void |
createReadline(Ruby runtime)
|
static jline.Completor |
getCompletor(Readline.ConsoleHolder holder)
|
static jline.History |
getHistory(Readline.ConsoleHolder holder)
|
static Readline.ConsoleHolder |
getHolder(Ruby runtime)
|
protected static void |
initReadline(Ruby runtime,
Readline.ConsoleHolder holder)
|
static IRubyObject |
s_get_basic_word_break_character(IRubyObject recv)
|
static IRubyObject |
s_readline(IRubyObject recv)
|
static IRubyObject |
s_readline(IRubyObject recv,
IRubyObject prompt)
|
static IRubyObject |
s_readline(IRubyObject recv,
IRubyObject prompt,
IRubyObject add_to_hist)
|
static IRubyObject |
s_readline(ThreadContext context,
IRubyObject recv,
IRubyObject prompt,
IRubyObject add_to_hist)
|
static IRubyObject |
s_set_basic_word_break_character(IRubyObject recv,
IRubyObject achar)
|
static IRubyObject |
s_set_completion_append_character(IRubyObject recv,
IRubyObject achar)
|
static IRubyObject |
s_set_completion_proc(IRubyObject recv,
IRubyObject proc)
|
static void |
setCompletor(Readline.ConsoleHolder holder,
jline.Completor completor)
|
static IRubyObject |
setInput(ThreadContext context,
IRubyObject recv,
IRubyObject input)
|
static IRubyObject |
setOutput(ThreadContext context,
IRubyObject recv,
IRubyObject output)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ESC_KEY_CODE
public static final char ESC_KEY_CODE
- See Also:
- Constant Field Values
Readline
public Readline()
createReadline
public static void createReadline(Ruby runtime)
throws java.io.IOException
- Throws:
java.io.IOException
initReadline
protected static void initReadline(Ruby runtime,
Readline.ConsoleHolder holder)
throws java.io.IOException
- Throws:
java.io.IOException
getHistory
public static jline.History getHistory(Readline.ConsoleHolder holder)
getHolder
public static Readline.ConsoleHolder getHolder(Ruby runtime)
setCompletor
public static void setCompletor(Readline.ConsoleHolder holder,
jline.Completor completor)
getCompletor
public static jline.Completor getCompletor(Readline.ConsoleHolder holder)
s_readline
public static IRubyObject s_readline(IRubyObject recv,
IRubyObject prompt,
IRubyObject add_to_hist)
throws java.io.IOException
- Throws:
java.io.IOException
s_readline
public static IRubyObject s_readline(ThreadContext context,
IRubyObject recv,
IRubyObject prompt,
IRubyObject add_to_hist)
throws java.io.IOException
- Throws:
java.io.IOException
setInput
public static IRubyObject setInput(ThreadContext context,
IRubyObject recv,
IRubyObject input)
setOutput
public static IRubyObject setOutput(ThreadContext context,
IRubyObject recv,
IRubyObject output)
s_readline
public static IRubyObject s_readline(IRubyObject recv,
IRubyObject prompt)
throws java.io.IOException
- Throws:
java.io.IOException
s_readline
public static IRubyObject s_readline(IRubyObject recv)
throws java.io.IOException
- Throws:
java.io.IOException
s_set_basic_word_break_character
public static IRubyObject s_set_basic_word_break_character(IRubyObject recv,
IRubyObject achar)
throws java.lang.Exception
- Throws:
java.lang.Exception
s_get_basic_word_break_character
public static IRubyObject s_get_basic_word_break_character(IRubyObject recv)
throws java.lang.Exception
- Throws:
java.lang.Exception
s_set_completion_append_character
public static IRubyObject s_set_completion_append_character(IRubyObject recv,
IRubyObject achar)
throws java.lang.Exception
- Throws:
java.lang.Exception
s_set_completion_proc
public static IRubyObject s_set_completion_proc(IRubyObject recv,
IRubyObject proc)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2002-2009 JRuby Team. All Rights Reserved.