org.jruby.ext
Class Readline

java.lang.Object
  extended byorg.jruby.ext.Readline

public class Readline
extends java.lang.Object

Author:
Ola Bini, Damian Steer

Nested Class Summary
static class Readline.ProcCompletor
           
static class Readline.RubyFileNameCompletor
           
static class Readline.Service
           
 
Constructor Summary
Readline()
           
 
Method Summary
static void createReadline(Ruby runtime)
           
static Completor getCompletor()
           
static History getHistory()
           
protected static void initReadline()
           
static IRubyObject s_hist_delete_at(IRubyObject recv, IRubyObject index)
           
static IRubyObject s_hist_each(IRubyObject recv, Block block)
           
static IRubyObject s_hist_empty_p(IRubyObject recv)
           
static IRubyObject s_hist_get(IRubyObject recv, IRubyObject index)
           
static IRubyObject s_hist_length(IRubyObject recv)
           
static IRubyObject s_hist_set(IRubyObject recv, IRubyObject index, IRubyObject val)
           
static IRubyObject s_hist_shift(IRubyObject recv)
           
static IRubyObject s_hist_to_a(IRubyObject recv)
           
static IRubyObject s_hist_to_s(IRubyObject recv)
           
static IRubyObject s_pop(IRubyObject recv)
           
static IRubyObject s_push(IRubyObject recv, IRubyObject[] lines)
           
static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist)
           
static IRubyObject s_set_completion_append_character(IRubyObject recv, IRubyObject achar)
           
static IRubyObject s_set_completion_proc(IRubyObject recv, IRubyObject proc)
           
static void setCompletor(Completor completor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()
                            throws java.io.IOException
Throws:
java.io.IOException

getHistory

public static History getHistory()

setCompletor

public static void setCompletor(Completor completor)

getCompletor

public static Completor getCompletor()

s_readline

public static IRubyObject s_readline(IRubyObject recv,
                                     IRubyObject prompt,
                                     IRubyObject add_to_hist)
                              throws java.io.IOException
Throws:
java.io.IOException

s_push

public static IRubyObject s_push(IRubyObject recv,
                                 IRubyObject[] lines)
                          throws java.lang.Exception
Throws:
java.lang.Exception

s_pop

public static IRubyObject s_pop(IRubyObject recv)
                         throws java.lang.Exception
Throws:
java.lang.Exception

s_hist_to_a

public static IRubyObject s_hist_to_a(IRubyObject recv)
                               throws java.lang.Exception
Throws:
java.lang.Exception

s_hist_to_s

public static IRubyObject s_hist_to_s(IRubyObject recv)

s_hist_get

public static IRubyObject s_hist_get(IRubyObject recv,
                                     IRubyObject index)

s_hist_set

public static IRubyObject s_hist_set(IRubyObject recv,
                                     IRubyObject index,
                                     IRubyObject val)

s_hist_shift

public static IRubyObject s_hist_shift(IRubyObject recv)

s_hist_length

public static IRubyObject s_hist_length(IRubyObject recv)

s_hist_empty_p

public static IRubyObject s_hist_empty_p(IRubyObject recv)

s_hist_delete_at

public static IRubyObject s_hist_delete_at(IRubyObject recv,
                                           IRubyObject index)

s_hist_each

public static IRubyObject s_hist_each(IRubyObject recv,
                                      Block block)

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.