Logo Search packages:      
Sourcecode: jruby1.0 version File versions

org::jruby::RubyFile Class Reference

Inheritance diagram for org::jruby::RubyFile:

org::jruby::RubyIO org::jruby::RubyObject org::jruby::runtime::builtin::IRubyObject

List of all members.


Detailed Description

Ruby File class equivalent in java.

Author:
jpetersen

Definition at line 71 of file RubyFile.java.


Public Member Functions

void addFinalizer (RubyProc finalizer)
IRubyObject addString (IRubyObject anObject)
IRubyObject anyToString ()
RubyString asString ()
String asSymbol ()
void attachToObjectSpace ()
IRubyObject binmode ()
void callInit (IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, Block block)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
IRubyObject callMethod (ThreadContext context, String name)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject checkArrayType ()
IRubyObject checkStringType ()
IRubyObject chmod (IRubyObject arg)
IRubyObject chown (IRubyObject arg)
IRubyObject close ()
RubyBoolean closed ()
IRubyObject compilerCallMethod (ThreadContext context, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
IRubyObject compilerCallMethodWithIndex (ThreadContext context, int methodIndex, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyString convertToString ()
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, boolean raise)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raise)
IRubyObject convertToTypeWithCheck (RubyClass targetType, int convertMethodIndex, String convertMethod)
IRubyObject ctime ()
synchronized Object dataGetStruct ()
synchronized void dataWrapStruct (Object obj)
IRubyObject display (IRubyObject[] args)
IRubyObject dup ()
IRubyObject each_byte (Block block)
RubyIO each_line (IRubyObject[] args, Block block)
RubyBoolean eof ()
boolean eql (IRubyObject other)
final boolean eqlInternal (final ThreadContext context, final IRubyObject other)
IRubyObject equal (IRubyObject other)
final IRubyObject equalInternal (final ThreadContext context, final IRubyObject other)
boolean equals (Object other)
IRubyObject evalSimple (ThreadContext context, IRubyObject src, String file)
IRubyObject evalUnder (RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalWithBinding (ThreadContext context, IRubyObject src, IRubyObject scope, String file)
IRubyObject extend (IRubyObject[] args)
IRubyObject fcntl (IRubyObject cmd, IRubyObject arg) throws IOException
RubyFixnum fileno ()
IRubyObject flock (IRubyObject lockingConstant)
RubyIO flush ()
IRubyObject freeze ()
RubyBoolean frozen ()
RubyFixnum fsync ()
boolean getBlocking ()
IRubyObject getc ()
Channel getChannel ()
IRubyObject getInstanceVariable (String name)
Map getInstanceVariables ()
Map getInstanceVariablesSnapshot ()
InputStream getInStream ()
IOHandler getIOHandlerByFileno (int aFileno)
Class getJavaClass ()
final RubyClass getMetaClass ()
int getNativeTypeIndex ()
OutputStream getOutStream ()
Ruby getRuntime ()
IRubyObject gets (IRubyObject[] args)
RubyClass getSingletonClass ()
RubyClass getSingletonClassClone ()
RubyClass getType ()
RubyFixnum hash ()
int hashCode ()
boolean hasPendingBuffered ()
synchronized RubyFixnum id ()
synchronized RubyFixnum id_deprecated ()
IRubyObject infectBy (IRubyObject obj)
IRubyObject inherited (IRubyObject arg, Block block)
IRubyObject initialize (IRubyObject[] args, Block block)
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject instance_eval (IRubyObject[] args, Block block)
IRubyObject instance_exec (IRubyObject[] args, Block block)
RubyBoolean instance_of (IRubyObject type)
IRubyObject instance_variable_get (IRubyObject var)
IRubyObject instance_variable_set (IRubyObject var, IRubyObject value)
RubyArray instance_variables ()
Iterator instanceVariableNames ()
IRubyObject internalGets (IRubyObject[] args)
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isKindOf (RubyModule type)
boolean isNil ()
boolean isOpen ()
boolean isSingleton ()
boolean isTaint ()
final boolean isTrue ()
RubyBoolean kind_of (IRubyObject type)
RubyFixnum lineno ()
RubyFixnum lineno_set (IRubyObject newLineNumber)
RubyClass makeMetaClass (RubyClass superClass, SinglyLinkedList parentCRef)
IRubyObject match (IRubyObject arg)
IRubyObject method (IRubyObject symbol)
IRubyObject method_missing (IRubyObject[] args, Block block)
IRubyObject methods (IRubyObject[] args)
IRubyObject nil_p ()
IRubyObject obj_equal (IRubyObject obj)
void openInternal (String newPath, IOModes newModes)
RubyString path ()
IRubyObject pid ()
RubyFixnum pos ()
RubyFixnum pos_set (IRubyObject newPosition)
IRubyObject print (IRubyObject[] args)
IRubyObject printf (IRubyObject[] args)
IRubyObject private_methods ()
IRubyObject protected_methods ()
IRubyObject public_methods (IRubyObject[] args)
IRubyObject putc (IRubyObject object)
IRubyObject puts (IRubyObject[] args)
IRubyObject rbClone (Block unusedBlock)
IRubyObject read (IRubyObject[] args)
IRubyObject readchar ()
IRubyObject readline (IRubyObject[] args)
RubyArray readlines (IRubyObject[] args)
IRubyObject readpartial (IRubyObject[] args)
void registerIOHandler (IOHandler newHandler)
IRubyObject remove_instance_variable (IRubyObject name, Block block)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
IRubyObject reopen (IRubyObject[] args)
RubyBoolean respond_to (IRubyObject[] args)
boolean respondsTo (String name)
RubyFixnum rewind ()
 RubyFile (Ruby runtime, String path, final Reader reader)
 RubyFile (Ruby runtime, String path)
 RubyFile (Ruby runtime, RubyClass type)
Map safeGetInstanceVariables ()
boolean safeHasInstanceVariables ()
RubyFixnum seek (IRubyObject[] args)
IRubyObject send (IRubyObject[] args, Block block)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
IRubyObject setInstanceVariable (String name, IRubyObject value, String taintError, String freezeError)
void setInstanceVariables (Map instanceVariables)
void setMetaClass (RubyClass metaClass)
void setTaint (boolean taint)
RubyArray singleton_methods (IRubyObject[] args)
IRubyObject specificEval (RubyModule mod, IRubyObject[] args, Block block)
IRubyObject stat ()
RubyBoolean sync ()
IRubyObject sync_set (IRubyObject newSync)
IRubyObject sysread (IRubyObject number)
IRubyObject syswrite (IRubyObject obj)
IRubyObject taint ()
RubyBoolean tainted ()
RubyIO to_io ()
IRubyObject to_s ()
String toString ()
IRubyObject truncate (IRubyObject arg)
RubyBoolean tty ()
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject ungetc (IRubyObject number)
void unregisterIOHandler (int aFileno)
IRubyObject untaint ()
IRubyObject write (IRubyObject obj)

Static Public Member Functions

static IRubyObject basename (IRubyObject recv, IRubyObject[] args)
static IRubyObject callMethodMissingIfNecessary (ThreadContext context, IRubyObject receiver, DynamicMethod method, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
static IRubyObject chmod (IRubyObject recv, IRubyObject[] args)
static IRubyObject chown (IRubyObject recv, IRubyObject[] args)
static RubyClass createFileClass (Ruby runtime)
static RubyClass createIOClass (Ruby runtime)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static IRubyObject ctime (IRubyObject recv, IRubyObject filename)
static IRubyObject dirname (IRubyObject recv, IRubyObject arg)
static IRubyObject expand_path (IRubyObject recv, IRubyObject[] args)
static IRubyObject extname (IRubyObject recv, IRubyObject arg)
static IRubyObject fdOpen (Ruby runtime, int descriptor)
static IRubyObject fnmatch (IRubyObject recv, IRubyObject[] args)
static IRubyObject foreach (IRubyObject recv, IRubyObject[] args, Block block)
static int getNewFileno ()
static void initCopy (IRubyObject clone, IRubyObject original)
static RubyString join (IRubyObject recv, IRubyObject[] args)
static IRubyObject lstat (IRubyObject recv, IRubyObject filename)
static IRubyObject mtime (IRubyObject recv, IRubyObject filename)
static IRubyObject open (IRubyObject recv, IRubyObject[] args, boolean tryToYield, Block block)
static IRubyObject open (IRubyObject recv, IRubyObject[] args, Block block)
static IRubyObject pipe (IRubyObject recv) throws Exception
static IRubyObject popen (IRubyObject recv, IRubyObject[] args, Block block)
static void puts (Object obj)
static IRubyObject read (IRubyObject recv, IRubyObject[] args, Block block)
static RubyArray readlines (IRubyObject recv, IRubyObject[] args, Block block)
static IRubyObject rename (IRubyObject recv, IRubyObject oldName, IRubyObject newName)
static IRubyObject select (IRubyObject recv, IRubyObject[] args)
static IRubyObject select_static (Ruby runtime, IRubyObject[] args)
static IRubyObject size_p (IRubyObject recv, IRubyObject filename)
static RubyArray split (IRubyObject recv, IRubyObject arg)
static IRubyObject symlink (IRubyObject recv, IRubyObject from, IRubyObject to)
static IRubyObject symlink_p (IRubyObject recv, IRubyObject arg1)
static String trueFalseNil (String v)
static String trueFalseNil (IRubyObject v)
static IRubyObject truncate (IRubyObject recv, IRubyObject arg1, IRubyObject arg2)
static IRubyObject unlink (IRubyObject recv, IRubyObject[] args)
static IRubyObject utime (IRubyObject recv, IRubyObject[] args)

Static Public Attributes

static final int LOCK_EX = 2
static final int LOCK_NB = 4
static final int LOCK_SH = 1
static final int LOCK_UN = 8
static final IRubyObject NEVER = new RubyObject()
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static ObjectAllocator OBJECT_ALLOCATOR
static final int STDERR = 2
static final int STDIN = 0
static final int STDOUT = 1

Protected Member Functions

void checkFrozen ()
void checkReadable ()
void checkWriteable ()
IRubyObject doClone ()
void testFrozen (String message)

Protected Attributes

IOHandler handler
Map instanceVariables
boolean isOpen = true
boolean isTrue = true
int lineNumber = 0
RubyClass metaClass
IOModes modes = null
String path

Static Protected Attributes

static int fileno = 2

Private Member Functions

 RubyFile (Ruby runtime, String path, InputStream in)

Static Private Member Functions

static String canonicalize (String canonicalPath, String remaining)
static String canonicalize (String path)
static void chomp (StringBuffer buffer)
static IOModes getModes (Ruby runtime, IRubyObject object)
static InputStream open (Ruby runtime, String path)

Private Attributes

FileLock currentLock

Static Private Attributes

static ObjectAllocator FILE_ALLOCATOR
static final int FNM_CASEFOLD = 8
static final int FNM_DOTMATCH = 4
static final int FNM_NOESCAPE = 1
static final int FNM_PATHNAME = 2

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index