org.jruby.ext
Class Readline

java.lang.Object
  extended by org.jruby.ext.Readline

public class Readline
extends java.lang.Object

Author:
Ola Bini, Damian Steer, Koichiro Ohba

Nested Class Summary
static class Readline.ConsoleHolder
           
static class Readline.HistoryMethods
           
static class Readline.ProcCompletor
           
static class Readline.ReadlineHistory
           
static class Readline.RubyFileNameCompletor
           
static class Readline.Service
           
 
Field Summary
static char ESC_KEY_CODE
           
 
Constructor Summary
Readline()
           
 
Method Summary
static void createReadline(Ruby runtime)
           
static Completor getCompletor(Readline.ConsoleHolder holder)
           
static 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, 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
 

Field Detail

ESC_KEY_CODE

public static final char ESC_KEY_CODE
See Also:
Constant Field Values
Constructor Detail

Readline

public Readline()
Method Detail

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 History getHistory(Readline.ConsoleHolder holder)

getHolder

public static Readline.ConsoleHolder getHolder(Ruby runtime)

setCompletor

public static void setCompletor(Readline.ConsoleHolder holder,
                                Completor completor)

getCompletor

public static 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-2007 JRuby Team. All Rights Reserved.