|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyObject
org.jruby.RubyModule
org.jruby.RubyClass
Nested Class Summary |
Nested classes inherited from class org.jruby.RubyObject |
RubyObject.Finalizer |
Field Summary | |
static byte |
EQQ_SWITCHVALUE
|
Fields inherited from class org.jruby.RubyModule |
cref, id, index |
Fields inherited from class org.jruby.RubyObject |
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
NULL_ARRAY |
Constructor Summary | |
protected |
RubyClass(RubyClass superClass,
ObjectAllocator allocator)
|
protected |
RubyClass(Ruby runtime,
RubyClass superClass,
ObjectAllocator allocator)
|
protected |
RubyClass(Ruby runtime,
RubyClass metaClass,
RubyClass superClass,
ObjectAllocator allocator)
|
protected |
RubyClass(Ruby runtime,
RubyClass metaClass,
RubyClass superClass,
ObjectAllocator allocator,
SinglyLinkedList parentCRef,
java.lang.String name)
|
Method Summary | |
IRubyObject |
allocate()
|
IRubyObject |
callMethod(ThreadContext context,
RubyModule rubyclass,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
|
static RubyClass |
cloneClass(Ruby runtime,
RubyClass metaClass,
RubyClass superClass,
ObjectAllocator allocator,
SinglyLinkedList parentCRef,
java.lang.String name)
|
static RubyClass |
createBootstrapMetaClass(Ruby runtime,
java.lang.String className,
RubyClass superClass,
ObjectAllocator allocator,
SinglyLinkedList cref)
Create an initial Object meta class before Module and Kernel dependencies have squirreled themselves together. |
static void |
createClassClass(RubyClass classClass)
|
protected IRubyObject |
doClone()
|
ObjectAllocator |
getAllocator()
|
ObjectMarshal |
getMarshal()
|
int |
getNativeTypeIndex()
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
RubyClass |
getRealClass()
|
Ruby |
getRuntime()
Getter for property ruby. |
static IRubyObject |
inherited(IRubyObject recv,
IRubyObject arg,
Block block)
|
static IRubyObject |
inherited(RubyClass recv)
rb_class_s_inherited |
void |
inheritedBy(RubyClass superType)
Invokes if a class is inherited from an other class. |
IRubyObject |
initialize_copy(IRubyObject original)
rb_class_init_copy |
boolean |
isClass()
|
boolean |
isModule()
|
boolean |
isSingleton()
|
void |
marshal(java.lang.Object obj,
MarshalStream marshalStream)
|
static void |
marshalTo(RubyClass clazz,
MarshalStream output)
|
static RubyClass |
newClass(IRubyObject recv,
IRubyObject[] args,
Block block)
|
static RubyClass |
newClass(IRubyObject recv,
IRubyObject[] args,
Block block,
boolean invokeInherited)
rb_class_s_new |
static RubyClass |
newClass(Ruby runtime,
RubyClass superClass,
SinglyLinkedList parentCRef,
java.lang.String name)
|
static RubyClass |
newClassClass(Ruby runtime,
RubyClass moduleClass)
|
IRubyObject |
newInstance(IRubyObject[] args,
Block block)
rb_class_new_instance |
RubyClass |
newSubClass(java.lang.String name,
ObjectAllocator allocator,
SinglyLinkedList parentCRef,
boolean warnOnRedefinition)
|
RubyClass |
newSubClass(java.lang.String name,
ObjectAllocator allocator,
SinglyLinkedList parentCRef,
boolean invokeInherited,
boolean warnOnRedefinition)
|
void |
setMarshal(ObjectMarshal marshal)
|
protected RubyClass |
subclass()
Create a new subclass of this class. |
IRubyObject |
superclass(Block block)
Return the real super class of this class. |
java.lang.Object |
unmarshal(UnmarshalStream unmarshalStream)
|
static RubyModule |
unmarshalFrom(UnmarshalStream output)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte EQQ_SWITCHVALUE
Constructor Detail |
protected RubyClass(RubyClass superClass, ObjectAllocator allocator)
protected RubyClass(Ruby runtime, RubyClass superClass, ObjectAllocator allocator)
protected RubyClass(Ruby runtime, RubyClass metaClass, RubyClass superClass, ObjectAllocator allocator)
protected RubyClass(Ruby runtime, RubyClass metaClass, RubyClass superClass, ObjectAllocator allocator, SinglyLinkedList parentCRef, java.lang.String name)
Method Detail |
public static RubyClass createBootstrapMetaClass(Ruby runtime, java.lang.String className, RubyClass superClass, ObjectAllocator allocator, SinglyLinkedList cref)
runtime
- we need it
public int getNativeTypeIndex()
RubyObject
getNativeTypeIndex
in interface IRubyObject
getNativeTypeIndex
in class RubyModule
public IRubyObject callMethod(ThreadContext context, RubyModule rubyclass, int methodIndex, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
callMethod
in interface IRubyObject
callMethod
in class RubyModule
public final IRubyObject allocate()
public final ObjectMarshal getMarshal()
public final void setMarshal(ObjectMarshal marshal)
public final void marshal(java.lang.Object obj, MarshalStream marshalStream) throws java.io.IOException
java.io.IOException
public final java.lang.Object unmarshal(UnmarshalStream unmarshalStream) throws java.io.IOException
java.io.IOException
public static RubyClass newClassClass(Ruby runtime, RubyClass moduleClass)
public Ruby getRuntime()
RubyObject
getRuntime
in interface IRubyObject
getRuntime
in class RubyObject
public boolean isModule()
isModule
in class RubyModule
public boolean isClass()
isClass
in class RubyModule
public static void createClassClass(RubyClass classClass)
public static IRubyObject inherited(IRubyObject recv, IRubyObject arg, Block block)
public void inheritedBy(RubyClass superType)
public boolean isSingleton()
isSingleton
in interface IRubyObject
isSingleton
in class RubyModule
public RubyClass getRealClass()
public static RubyClass newClass(Ruby runtime, RubyClass superClass, SinglyLinkedList parentCRef, java.lang.String name)
public static RubyClass cloneClass(Ruby runtime, RubyClass metaClass, RubyClass superClass, ObjectAllocator allocator, SinglyLinkedList parentCRef, java.lang.String name)
protected RubyClass subclass()
TypeError
- if this is class `Class'public IRubyObject newInstance(IRubyObject[] args, Block block)
public ObjectAllocator getAllocator()
public static RubyClass newClass(IRubyObject recv, IRubyObject[] args, Block block, boolean invokeInherited)
public static RubyClass newClass(IRubyObject recv, IRubyObject[] args, Block block)
public IRubyObject superclass(Block block)
public static IRubyObject inherited(RubyClass recv)
public static void marshalTo(RubyClass clazz, MarshalStream output) throws java.io.IOException
java.io.IOException
public static RubyModule unmarshalFrom(UnmarshalStream output) throws java.io.IOException
java.io.IOException
public RubyClass newSubClass(java.lang.String name, ObjectAllocator allocator, SinglyLinkedList parentCRef, boolean invokeInherited, boolean warnOnRedefinition)
public RubyClass newSubClass(java.lang.String name, ObjectAllocator allocator, SinglyLinkedList parentCRef, boolean warnOnRedefinition)
protected IRubyObject doClone()
doClone
in class RubyModule
public IRubyObject initialize_copy(IRubyObject original)
initialize_copy
in class RubyModule
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |