org.jruby.runtime.builtin
Interface IRubyObject

All Known Implementing Classes:
RubyObject

public interface IRubyObject

Object is the parent class of all classes in Ruby. Its methods are therefore available to all objects unless explicitly overridden.

Version:
$Revision: 1.7 $
Author:
jpetersen

Field Summary
static IRubyObject[] NULL_ARRAY
           
 
Method Summary
 int argCount(IRubyObject[] args, int i, int i1)
          Method argCount.
 java.lang.String asSymbol()
          Convert the object into a symbol name if possible.
 void callInit(IRubyObject[] args)
           
 IRubyObject callMethod(java.lang.String string)
          Method funcall.
 IRubyObject callMethod(java.lang.String string, IRubyObject arg)
          Method funcall.
 IRubyObject callMethod(java.lang.String method, IRubyObject[] rubyArgs)
          Method callMethod.
 void checkSafeString()
          Method checkSafeString.
 IRubyObject convertToString()
           
 IRubyObject convertToType(java.lang.String string, java.lang.String string1, boolean b)
          Method convertToType.
 IRubyObject convertType(java.lang.Class type, java.lang.String string, java.lang.String string1)
          Method convertType.
 void defineSingletonMethod(java.lang.String name, Callback callback)
          Method defineSingletonMethod.
 IRubyObject dup()
          Method dup.
 IRubyObject eval(INode iNode)
          Method eval.
 IRubyObject eval(IRubyObject iRubyObject, IRubyObject rubyObject, java.lang.String string, int i)
          Method eval.
 void extendObject(RubyModule rubyModule)
          Method extendObject.
 IRubyObject getInstanceVariable(java.lang.String string)
          Method getInstanceVar.
 java.lang.Class getJavaClass()
          Method getJavaClass.
 RubyClass getMetaClass()
          Method getRubyClass.
 Ruby getRuntime()
          Method getRuntime.
 RubyClass getSingletonClass()
          Method getSingletonClass.
 RubyClass getType()
          Method getType.
 boolean hasInstanceVariable(java.lang.String string)
          Method isInstanceVarDefined.
 RubyString inspect()
          Method inspect.
 boolean isFrozen()
          Method isFrozen.
 boolean isKindOf(RubyModule rubyClass)
          Method isKindOf.
 boolean isNil()
          Method isNil.
 boolean isTaint()
          Method isTaint.
 boolean isTrue()
           
 void marshalTo(MarshalStream marshalStream)
          Method marshalTo.
 IRubyObject method_missing(IRubyObject[] args)
          Method method_missing.
 IRubyObject rbClone()
          Method rbClone.
 boolean respondsTo(java.lang.String string)
          Method respondsTo.
 void setFrozen(boolean b)
          Method setFrozen.
 IRubyObject setInstanceVariable(java.lang.String string, IRubyObject rubyObject)
          Method setInstanceVar.
 void setMetaClass(RubyClass metaClass)
           
 void setTaint(boolean b)
          Method setTaint.
 void setupClone(IRubyObject rubyString)
          Method setupClone.
 boolean singletonMethodsAllowed()
           
 

Field Detail

NULL_ARRAY

public static final IRubyObject[] NULL_ARRAY
Method Detail

getInstanceVariable

public IRubyObject getInstanceVariable(java.lang.String string)
Method getInstanceVar.

Parameters:
string -
Returns:
RubyObject

setInstanceVariable

public IRubyObject setInstanceVariable(java.lang.String string,
                                       IRubyObject rubyObject)
Method setInstanceVar.

Parameters:
string -
rubyObject -
Returns:
RubyObject

callMethod

public IRubyObject callMethod(java.lang.String string)
Method funcall.

Parameters:
string -
Returns:
RubyObject

isNil

public boolean isNil()
Method isNil.

Returns:
boolean

isTrue

public boolean isTrue()

isTaint

public boolean isTaint()
Method isTaint.

Returns:
boolean

isFrozen

public boolean isFrozen()
Method isFrozen.

Returns:
boolean

callMethod

public IRubyObject callMethod(java.lang.String string,
                              IRubyObject arg)
Method funcall.

Parameters:
string -
arg -
Returns:
RubyObject

getMetaClass

public RubyClass getMetaClass()
Method getRubyClass.


setMetaClass

public void setMetaClass(RubyClass metaClass)

getSingletonClass

public RubyClass getSingletonClass()
Method getSingletonClass.

Returns:
RubyClass

getType

public RubyClass getType()
Method getType.

Returns:
RubyClass

isKindOf

public boolean isKindOf(RubyModule rubyClass)
Method isKindOf.

Parameters:
rubyClass -
Returns:
boolean

respondsTo

public boolean respondsTo(java.lang.String string)
Method respondsTo.

Parameters:
string -
Returns:
boolean

getRuntime

public Ruby getRuntime()
Method getRuntime.


getJavaClass

public java.lang.Class getJavaClass()
Method getJavaClass.

Returns:
Class

callMethod

public IRubyObject callMethod(java.lang.String method,
                              IRubyObject[] rubyArgs)
Method callMethod.

Parameters:
method -
rubyArgs -
Returns:
IRubyObject

eval

public IRubyObject eval(INode iNode)
Method eval.

Parameters:
iNode -
Returns:
IRubyObject

eval

public IRubyObject eval(IRubyObject iRubyObject,
                        IRubyObject rubyObject,
                        java.lang.String string,
                        int i)
Method eval.

Parameters:
iRubyObject -
rubyObject -
string -
i -
Returns:
IRubyObject

extendObject

public void extendObject(RubyModule rubyModule)
Method extendObject.

Parameters:
rubyModule -

asSymbol

public java.lang.String asSymbol()
Convert the object into a symbol name if possible.

Returns:
String the symbol name

convertToType

public IRubyObject convertToType(java.lang.String string,
                                 java.lang.String string1,
                                 boolean b)
Method convertToType.

Parameters:
string -
string1 -
b -

convertToString

public IRubyObject convertToString()

setTaint

public void setTaint(boolean b)
Method setTaint.

Parameters:
b -

checkSafeString

public void checkSafeString()
Method checkSafeString.


marshalTo

public void marshalTo(MarshalStream marshalStream)
               throws java.io.IOException
Method marshalTo.

Parameters:
marshalStream -
Throws:
java.io.IOException

convertType

public IRubyObject convertType(java.lang.Class type,
                               java.lang.String string,
                               java.lang.String string1)
Method convertType.

Parameters:
type -
string -
string1 -

dup

public IRubyObject dup()
Method dup.


setupClone

public void setupClone(IRubyObject rubyString)
Method setupClone.

Parameters:
rubyString -

setFrozen

public void setFrozen(boolean b)
Method setFrozen.

Parameters:
b -

inspect

public RubyString inspect()
Method inspect.

Returns:
String

argCount

public int argCount(IRubyObject[] args,
                    int i,
                    int i1)
Method argCount.

Parameters:
args -
i -
i1 -
Returns:
int

rbClone

public IRubyObject rbClone()
Method rbClone.

Returns:
IRubyObject

hasInstanceVariable

public boolean hasInstanceVariable(java.lang.String string)
Method isInstanceVarDefined.

Parameters:
string -
Returns:
boolean

callInit

public void callInit(IRubyObject[] args)

method_missing

public IRubyObject method_missing(IRubyObject[] args)
Method method_missing.

Parameters:
args -
Returns:
IRubyObject

defineSingletonMethod

public void defineSingletonMethod(java.lang.String name,
                                  Callback callback)
Method defineSingletonMethod.

Parameters:
name -
callback -

singletonMethodsAllowed

public boolean singletonMethodsAllowed()


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.