Save This Page
Home » jruby-src-1.1.3 » org.jruby » [javadoc | source]
org.jruby
public class: RubyClass [javadoc | source]
java.lang.Object
   org.jruby.RubyObject
      org.jruby.RubyModule
         org.jruby.RubyClass

All Implemented Interfaces:
    node_type, Scope, VALUE

Direct Known Subclasses:
    IncludedModuleWrapper, MetaClass

Field Summary
public static final  ObjectAllocator CLASS_ALLOCATOR     
protected  ObjectMarshal marshal     
protected static final  ObjectMarshal DEFAULT_OBJECT_MARSHAL     
Constructor:
 protected RubyClass(Ruby runtime) 
    used by CLASS_ALLOCATOR (any Class' class will be a Class!) also used to bootstrap Object class
 protected RubyClass(Ruby runtime,
    RubyClass superClazz) 
    rb_class_boot (for plain Classes) also used to bootstrap Module and Class classes
 protected RubyClass(Ruby runtime,
    RubyClass superClass,
    boolean objectSpace) 
    separate path for MetaClass and IncludedModuleWrapper construction (rb_class_boot version for MetaClasses) no marshal, allocator initialization and addSubclass(this) here!
Method from org.jruby.RubyClass Summary:
addSubclass,   allocate,   checkInheritable,   createBootstrapClass,   createClassClass,   getAllocator,   getClassRuntime,   getMarshal,   getNativeTypeIndex,   getRealClass,   inherit,   inherited,   initialize,   initialize_copy,   invoke,   invoke,   invoke,   invokeInherited,   isClass,   isModule,   isSingleton,   makeMetaClass,   marshal,   marshalTo,   newClass,   newClass,   newInstance,   setAllocator,   setMarshal,   subclasses,   subclasses,   superclass,   unmarshal,   unmarshalFrom
Methods from org.jruby.RubyModule:
addAttribute,   addMethod,   aliasMethod,   attachSingletonClass,   call,   call0,   declareClassVar,   defineAlias,   defineAttribute,   defineClassUnder,   defineClassVariable,   defineConstant,   defineMethod,   defineMethodId,   defineModuleFunction,   defineModuleUnder,   definePrivateMethod,   defineProtectedMethod,   findClassPath,   getClassPath,   getClassVar,   getClassVarSingleton,   getClassname,   getConstAt,   getConstOf,   getConstant,   getMethodBody,   getMethodOrigin,   getMethods,   getSingletonClassClone,   getSuperClass,   includeModule,   isClass,   isClassVarDefined,   isConstantDefined,   isIncluded,   isModule,   isSingleton,   m_ancestors,   m_attr,   m_attr_accessor,   m_attr_reader,   m_attr_writer,   m_class_variables,   m_clone,   m_const_defined,   m_const_get,   m_const_set,   m_constants,   m_dup,   m_included_modules,   m_initialize,   m_instance_methods,   m_name,   m_new,   m_newModule,   m_private_instance_methods,   m_protected_instance_methods,   m_remove_class_variable,   m_to_s,   methodList,   newIncludeClass,   newSingletonClass,   op_cmp,   op_eqq,   op_ge,   op_gt,   op_le,   op_lt,   removeCvar,   searchMethod,   setAv,   setClassPath,   setClassVar,   setConstant,   setIncluded,   setMethods,   setName,   setSingleton,   setSuperClass,   testFrozen,   toName,   undef,   undefMethod
Methods from org.jruby.RubyObject:
callInit,   defineSingletonMethod,   funcall,   funcall,   funcall,   funcall3,   getClassVarSingleton,   getInstanceVar,   getInstanceVar,   getInstanceVariables,   getRuby,   getRubyClass,   getSingletonClass,   infectObject,   isFalse,   isFrozen,   isImmediate,   isInstanceVarDefined,   isNil,   isSpecialConst,   isTaint,   isTrue,   m_clone,   m_dup,   m_equal,   m_freeze,   m_frozen,   m_id,   m_inspect,   m_instance_of,   m_kind_of,   m_methods,   m_private_methods,   m_protected_methods,   m_singleton_methods,   m_taint,   m_tainted,   m_to_s,   m_type,   m_untaint,   setFrozen,   setImmediate,   setInstanceVar,   setInstanceVar,   setInstanceVariables,   setRuby,   setRubyClass,   setTaint,   setupClone,   setupObject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jruby.RubyClass Detail:
 public synchronized  void addSubclass(RubyClass subclass) 
 public IRubyObject allocate() 
 public static  void checkInheritable(IRubyObject superClass) 
    rb_check_inheritable
 public static RubyClass createBootstrapClass(Ruby runtime,
    String name,
    RubyClass superClass,
    ObjectAllocator allocator) 
    boot_defclass Create an initial Object meta class before Module and Kernel dependencies have squirreled themselves together.
 public static  void createClassClass(Ruby runtime,
    RubyClass classClass) 
 public ObjectAllocator getAllocator() 
 public Ruby getClassRuntime() 
 public final ObjectMarshal getMarshal() 
 public int getNativeTypeIndex() 
 public RubyClass getRealClass() 
 public  void inherit(RubyClass superClazz) 
    rb_class_inherited (reversed semantics!)
 public IRubyObject inherited(ThreadContext context,
    IRubyObject arg) 
 public IRubyObject initialize(IRubyObject[] args,
    Block block) 
    rb_class_initialize
 public IRubyObject initialize_copy(IRubyObject original) 
    rb_class_init_copy
 public IRubyObject invoke(ThreadContext context,
    IRubyObject self,
    String name,
    IRubyObject[] args,
    CallType callType,
    Block block) 
 public IRubyObject invoke(ThreadContext context,
    IRubyObject self,
    String name,
    IRubyObject arg,
    CallType callType,
    Block block) 
 public IRubyObject invoke(ThreadContext context,
    IRubyObject self,
    int methodIndex,
    String name,
    IRubyObject[] args,
    CallType callType,
    Block block) 
 public IRubyObject invokeInherited(ThreadContext context,
    IRubyObject self,
    IRubyObject subclass) 
 public boolean isClass() 
 public boolean isModule() 
 public boolean isSingleton() 
 public RubyClass makeMetaClass(RubyClass superClass) 
    rb_make_metaclass
 public final  void marshal(Object obj,
    MarshalStream marshalStream) throws IOException 
 public static  void marshalTo(RubyClass clazz,
    MarshalStream output) throws IOException 
 public static RubyClass newClass(Ruby runtime,
    RubyClass superClass) 
    rb_class_new
 public static RubyClass newClass(Ruby runtime,
    RubyClass superClass,
    String name,
    ObjectAllocator allocator,
    RubyModule parent,
    boolean setParent) 
    rb_class_new/rb_define_class_id/rb_name_class/rb_set_class_path
 public IRubyObject newInstance(ThreadContext context,
    IRubyObject[] args,
    Block block) 
    rb_class_new_instance
 public  void setAllocator(ObjectAllocator allocator) 
 public final  void setMarshal(ObjectMarshal marshal) 
 public Collection subclasses(boolean includeDescendants) 
 public IRubyObject subclasses(ThreadContext context,
    IRubyObject[] args) 
 public IRubyObject superclass(ThreadContext context) 
    Return the real super class of this class. rb_class_superclass
 public final Object unmarshal(UnmarshalStream unmarshalStream) throws IOException 
 public static RubyClass unmarshalFrom(UnmarshalStream input) throws IOException