org.jruby
Class RubyFileTest.FileTestFileMethods

java.lang.Object
  extended by org.jruby.RubyFileTest.FileTestFileMethods
Enclosing class:
RubyFileTest

public static class RubyFileTest.FileTestFileMethods
extends java.lang.Object

MRI defines the FileTest methods both as module functions on FileTest and as singleton methods on the File class. Since our annotations can't be both module and singleton method definitions, we define proxies here for File. Note that these are to be defined on the singleton class of the File class.


Constructor Summary
RubyFileTest.FileTestFileMethods()
           
 
Method Summary
static IRubyObject blockdev_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject chardev_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject directory_p(ThreadContext context, IRubyObject recv, IRubyObject filename)
           
static IRubyObject executable_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject executable_real_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject exist_p(ThreadContext context, IRubyObject recv, IRubyObject filename)
           
static RubyBoolean file_p(ThreadContext context, IRubyObject recv, IRubyObject filename)
           
static IRubyObject grpowned_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject identical_p(IRubyObject recv, IRubyObject filename1, IRubyObject filename2)
           
static IRubyObject owned_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject pipe_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject readable_p(ThreadContext context, IRubyObject recv, IRubyObject filename)
           
static IRubyObject setgid_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject setuid_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject size_p(ThreadContext context, IRubyObject recv, IRubyObject filename)
           
static IRubyObject size(ThreadContext context, IRubyObject recv, IRubyObject filename)
           
static IRubyObject socket_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject sticky_p(IRubyObject recv, IRubyObject filename)
           
static RubyBoolean symlink_p(IRubyObject recv, IRubyObject filename)
           
static IRubyObject worldReadable(ThreadContext context, IRubyObject recv, IRubyObject filename)
           
static IRubyObject worldWritable(ThreadContext context, IRubyObject recv, IRubyObject filename)
           
static RubyBoolean writable_p(IRubyObject recv, IRubyObject filename)
           
static RubyBoolean zero_p(ThreadContext context, IRubyObject recv, IRubyObject filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyFileTest.FileTestFileMethods

public RubyFileTest.FileTestFileMethods()
Method Detail

blockdev_p

public static IRubyObject blockdev_p(IRubyObject recv,
                                     IRubyObject filename)

chardev_p

public static IRubyObject chardev_p(IRubyObject recv,
                                    IRubyObject filename)

directory_p

public static IRubyObject directory_p(ThreadContext context,
                                      IRubyObject recv,
                                      IRubyObject filename)

executable_p

public static IRubyObject executable_p(IRubyObject recv,
                                       IRubyObject filename)

executable_real_p

public static IRubyObject executable_real_p(IRubyObject recv,
                                            IRubyObject filename)

exist_p

public static IRubyObject exist_p(ThreadContext context,
                                  IRubyObject recv,
                                  IRubyObject filename)

file_p

public static RubyBoolean file_p(ThreadContext context,
                                 IRubyObject recv,
                                 IRubyObject filename)

grpowned_p

public static IRubyObject grpowned_p(IRubyObject recv,
                                     IRubyObject filename)

identical_p

public static IRubyObject identical_p(IRubyObject recv,
                                      IRubyObject filename1,
                                      IRubyObject filename2)

owned_p

public static IRubyObject owned_p(IRubyObject recv,
                                  IRubyObject filename)

pipe_p

public static IRubyObject pipe_p(IRubyObject recv,
                                 IRubyObject filename)

readable_p

public static IRubyObject readable_p(ThreadContext context,
                                     IRubyObject recv,
                                     IRubyObject filename)

setgid_p

public static IRubyObject setgid_p(IRubyObject recv,
                                   IRubyObject filename)

setuid_p

public static IRubyObject setuid_p(IRubyObject recv,
                                   IRubyObject filename)

size

public static IRubyObject size(ThreadContext context,
                               IRubyObject recv,
                               IRubyObject filename)

size_p

public static IRubyObject size_p(ThreadContext context,
                                 IRubyObject recv,
                                 IRubyObject filename)

socket_p

public static IRubyObject socket_p(IRubyObject recv,
                                   IRubyObject filename)

sticky_p

public static IRubyObject sticky_p(IRubyObject recv,
                                   IRubyObject filename)

symlink_p

public static RubyBoolean symlink_p(IRubyObject recv,
                                    IRubyObject filename)

writable_p

public static RubyBoolean writable_p(IRubyObject recv,
                                     IRubyObject filename)

zero_p

public static RubyBoolean zero_p(ThreadContext context,
                                 IRubyObject recv,
                                 IRubyObject filename)

worldReadable

public static IRubyObject worldReadable(ThreadContext context,
                                        IRubyObject recv,
                                        IRubyObject filename)

worldWritable

public static IRubyObject worldWritable(ThreadContext context,
                                        IRubyObject recv,
                                        IRubyObject filename)


Copyright © 2002-2009 JRuby Team. All Rights Reserved.