org.jruby
Class RubyModule

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.RubyModule
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject
Direct Known Subclasses:
RubyClass

public class RubyModule
extends RubyObject

Author:
jpetersen

Nested Class Summary
 
Nested classes inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
 SinglyLinkedList cref
           
static byte EQQ_SWITCHVALUE
           
 int id
           
 int 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 RubyModule(Ruby runtime, RubyClass metaClass, RubyClass superClass, SinglyLinkedList parentCRef, java.lang.String name)
           
 
Method Summary
 void addClassProvider(ClassProvider provider)
           
 void addMethod(java.lang.String name, DynamicMethod method)
           
 void addModuleFunction(java.lang.String name, DynamicMethod method)
           
 RubyModule alias_method(IRubyObject newId, IRubyObject oldId)
           
 RubyArray ancestors()
          rb_mod_ancestors
 RubyModule append_features(IRubyObject module)
          rb_mod_append_features
 IRubyObject attr_accessor(IRubyObject[] args)
          rb_mod_attr_accessor
 IRubyObject attr_reader(IRubyObject[] args)
          rb_mod_attr_reader
 IRubyObject attr_writer(IRubyObject[] args)
          rb_mod_attr_writer
 IRubyObject attr(IRubyObject[] args)
          rb_mod_attr
 IRubyObject callMethod(ThreadContext context, RubyModule rubyclass, int methodIndex, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
           
 IRubyObject class_variable_get(IRubyObject var)
          rb_mod_cvar_get
 IRubyObject class_variable_set(IRubyObject var, IRubyObject value)
          rb_mod_cvar_set
 RubyArray class_variables()
          rb_mod_class_variables
protected  IRubyObject cloneMethods(RubyModule clone)
           
 RubyBoolean const_defined(IRubyObject symbol)
          rb_mod_const_defined
 IRubyObject const_get(IRubyObject symbol)
          rb_mod_const_get
 IRubyObject const_missing(IRubyObject name, Block block)
          Base implementation of Module#const_missing, throws NameError for specific missing constant.
 IRubyObject const_set(IRubyObject symbol, IRubyObject value)
          rb_mod_const_set
 RubyArray constants()
          rb_mod_constants
static RubyClass createModuleClass(Ruby runtime, RubyClass moduleClass)
           
 IRubyObject define_method(IRubyObject[] args, Block block)
           
 void defineAlias(java.lang.String name, java.lang.String oldName)
          rb_alias
 RubyClass defineClassUnder(java.lang.String name, RubyClass superClazz, ObjectAllocator allocator)
          rb_define_class_under
 void defineConstant(java.lang.String name, IRubyObject value)
          rb_define_const
 void defineFastMethod(java.lang.String name, Callback method)
           
 void defineFastMethod(java.lang.String name, Callback method, Visibility visibility)
           
 void defineFastModuleFunction(java.lang.String name, Callback method)
          rb_define_module_function
 void defineFastPrivateMethod(java.lang.String name, Callback method)
           
 void defineFastProtectedMethod(java.lang.String name, Callback method)
           
 void defineFastPublicModuleFunction(java.lang.String name, Callback method)
          rb_define_module_function
 void defineMethod(java.lang.String name, Callback method)
           
 void defineModuleFunction(java.lang.String name, Callback method)
          rb_define_module_function
 RubyModule defineModuleUnder(java.lang.String name)
           
 RubyClass defineOrGetClassUnder(java.lang.String name, RubyClass superClazz)
           
 void definePrivateMethod(java.lang.String name, Callback method)
           
 void definePublicModuleFunction(java.lang.String name, Callback method)
          rb_define_module_function
protected  IRubyObject doClone()
           
 IRubyObject executeUnder(Callback method, IRubyObject[] args, Block block)
           
 void exportMethod(java.lang.String name, Visibility visibility)
          rb_export_method
 IRubyObject extend_object(IRubyObject obj)
          rb_mod_extend_object
 IRubyObject extended(IRubyObject other, Block block)
           
 RubyModule findImplementer(RubyModule clazz)
          Search through this module and supermodules for method definitions.
 java.util.List getAncestorList()
           
 java.lang.String getBaseName()
           
 RubyClass getClass(java.lang.String name)
          Finds a class that is within the current module (or class).
 IRubyObject getClassVar(java.lang.String name)
          Retrieve the specified class variable, searching through this module, included modules, and supermodules.
 IRubyObject getConstant(java.lang.String name)
          Retrieve the named constant, invoking 'const_missing' should that be appropriate.
 IRubyObject getConstantAt(java.lang.String name)
           
 IRubyObject getConstantFrom(java.lang.String name)
           
 SinglyLinkedList getCRef()
           
 java.util.Map getMethods()
           
 java.lang.String getName()
          Generate a fully-qualified class name or a #-style name for anonymous and singleton classes.
 int getNativeTypeIndex()
          This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.
 RubyModule getNonIncludedClass()
           
 RubyModule getParent()
           
 RubyClass getSuperClass()
          Getter for property superClass.
 RubyFixnum hash()
           
 int hashCode()
           
 boolean hasModuleInHierarchy(RubyModule type)
           
 IRubyObject include_p(IRubyObject arg)
           
 RubyModule include(IRubyObject[] modules)
          rb_mod_include
 RubyArray included_modules()
          rb_mod_included_modules
 IRubyObject included(IRubyObject other)
           
 void includeModule(IRubyObject arg)
          Include a new module in this module or class.
 IRubyObject initialize_copy(IRubyObject original)
          rb_mod_init_copy
 IRubyObject initialize(IRubyObject[] args, Block block)
          rb_mod_initialize
 IRubyObject instance_method(IRubyObject symbol)
           
 RubyArray instance_methods(IRubyObject[] args)
           
 boolean isClass()
           
 boolean isClassVarDefined(java.lang.String name)
          Is class var defined? Ruby C equivalent = "rb_cvar_defined"
 boolean isIncluded()
          Is this module one that in an included one (e.g.
 boolean isKindOfModule(RubyModule type)
           
 boolean isMethodBound(java.lang.String name, boolean checkVisibility)
          MRI: rb_method_boundp
 boolean isModule()
           
 boolean isSame(RubyModule module)
           
 boolean isSingleton()
           
static void marshalTo(RubyModule module, MarshalStream output)
           
 IRubyObject method_added(IRubyObject nothing, Block block)
           
 RubyBoolean method_defined(IRubyObject symbol)
           
 IRubyObject method_removed(IRubyObject nothing, Block block)
           
 IRubyObject method_undefined(IRubyObject nothing, Block block)
           
 IRubyObject module_eval(IRubyObject[] args, Block block)
           
 RubyModule module_function(IRubyObject[] args)
          rb_mod_modfunc
 RubyString name()
           
static RubyArray nesting(IRubyObject recv, Block block)
          Return an array of nested modules or classes.
 IncludedModuleWrapper newIncludeClass(RubyClass superClazz)
          Create a wrapper to use for including the specified module into this one.
 IRubyObject newMethod(IRubyObject receiver, java.lang.String name, boolean bound)
           
static RubyModule newModule(Ruby runtime, RubyClass type, java.lang.String name)
           
static RubyModule newModule(Ruby runtime, RubyClass type, java.lang.String name, SinglyLinkedList parentCRef)
           
static RubyModule newModule(Ruby runtime, java.lang.String name)
           
static RubyModule newModule(Ruby runtime, java.lang.String name, SinglyLinkedList parentCRef)
           
 IRubyObject op_cmp(IRubyObject obj)
          rb_mod_cmp
 RubyBoolean op_eqq(IRubyObject obj)
          rb_mod_eqq
 IRubyObject op_ge(IRubyObject obj)
          rb_mod_ge
 IRubyObject op_gt(IRubyObject obj)
          rb_mod_gt
 IRubyObject op_le(IRubyObject obj)
          rb_mod_le
 IRubyObject op_lt(IRubyObject obj)
          rb_mod_lt
 RubyModule private_class_method(IRubyObject[] args)
           
 RubyArray private_instance_methods(IRubyObject[] args)
          rb_class_private_instance_methods
 IRubyObject private_method_defined(IRubyObject symbol)
           
 RubyArray protected_instance_methods(IRubyObject[] args)
          rb_class_protected_instance_methods
 IRubyObject protected_method_defined(IRubyObject symbol)
           
 RubyModule public_class_method(IRubyObject[] args)
           
 RubyArray public_instance_methods(IRubyObject[] args)
           
 IRubyObject public_method_defined(IRubyObject symbol)
           
 void putMethod(java.lang.Object name, DynamicMethod method)
           
 RubyModule rbPrivate(IRubyObject[] args)
          rb_mod_private
 RubyModule rbProtected(IRubyObject[] args)
          rb_mod_protected
 RubyModule rbPublic(IRubyObject[] args)
          rb_mod_public
 IRubyObject remove_class_variable(IRubyObject name)
          rb_mod_remove_cvar
 IRubyObject remove_const(IRubyObject name)
           
 RubyModule remove_method(IRubyObject[] args)
           
 void removeCachedMethod(java.lang.String name)
           
 void removeClassProvider(ClassProvider provider)
           
 IRubyObject removeCvar(IRubyObject name)
          rb_mod_remove_cvar
 void removeMethod(java.lang.String name)
           
 DynamicMethod retrieveMethod(java.lang.String name)
          Search through this module and supermodules for method definitions.
 DynamicMethod searchMethod(java.lang.String name)
          Search through this module and supermodules for method definitions.
 void setBaseName(java.lang.String name)
           
 IRubyObject setClassVar(java.lang.String name, IRubyObject value)
          Set the named class variable to the given value, provided taint and freeze allow setting it.
 IRubyObject setConstant(java.lang.String name, IRubyObject value)
          Set the named constant on this module.
 void setMethodVisibility(IRubyObject[] methods, Visibility visibility)
          set_method_visibility
 void setParent(RubyModule p)
           
protected  void setSuperClass(RubyClass superClass)
           
 IRubyObject to_s()
          rb_mod_to_s
 RubyModule undef_method(IRubyObject name)
           
 void undef(java.lang.String name)
          rb_undef
 void undefineMethod(java.lang.String name)
           
static RubyModule unmarshalFrom(UnmarshalStream input)
           
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissingIfNecessary, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getSingletonClassClone, getType, id_deprecated, id, infectBy, inherited, initCopy, inspect, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

index

public int index

id

public final int id

cref

public SinglyLinkedList cref

EQQ_SWITCHVALUE

public static final byte EQQ_SWITCHVALUE
See Also:
Constant Field Values
Constructor Detail

RubyModule

protected RubyModule(Ruby runtime,
                     RubyClass metaClass,
                     RubyClass superClass,
                     SinglyLinkedList parentCRef,
                     java.lang.String name)
Method Detail

addClassProvider

public void addClassProvider(ClassProvider provider)

removeClassProvider

public void removeClassProvider(ClassProvider provider)

createModuleClass

public static RubyClass createModuleClass(Ruby runtime,
                                          RubyClass moduleClass)

getNativeTypeIndex

public int getNativeTypeIndex()
Description copied from class: RubyObject
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.

Specified by:
getNativeTypeIndex in interface IRubyObject
Overrides:
getNativeTypeIndex in class RubyObject

callMethod

public IRubyObject callMethod(ThreadContext context,
                              RubyModule rubyclass,
                              int methodIndex,
                              java.lang.String name,
                              IRubyObject[] args,
                              CallType callType,
                              Block block)
Specified by:
callMethod in interface IRubyObject
Overrides:
callMethod in class RubyObject

getSuperClass

public RubyClass getSuperClass()
Getter for property superClass.

Returns:
Value of property superClass.

setSuperClass

protected void setSuperClass(RubyClass superClass)

getParent

public RubyModule getParent()

setParent

public void setParent(RubyModule p)

getMethods

public java.util.Map getMethods()

putMethod

public void putMethod(java.lang.Object name,
                      DynamicMethod method)

isModule

public boolean isModule()

isClass

public boolean isClass()

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface IRubyObject
Overrides:
isSingleton in class RubyObject

isIncluded

public boolean isIncluded()
Is this module one that in an included one (e.g. an IncludedModuleWrapper).


getNonIncludedClass

public RubyModule getNonIncludedClass()

getBaseName

public java.lang.String getBaseName()

setBaseName

public void setBaseName(java.lang.String name)

getName

public java.lang.String getName()
Generate a fully-qualified class name or a #-style name for anonymous and singleton classes. Ruby C equivalent = "classname"

Returns:
The generated class name

newIncludeClass

public IncludedModuleWrapper newIncludeClass(RubyClass superClazz)
Create a wrapper to use for including the specified module into this one. Ruby C equivalent = "include_class_new"

Returns:
The module wrapper

setClassVar

public IRubyObject setClassVar(java.lang.String name,
                               IRubyObject value)
Set the named class variable to the given value, provided taint and freeze allow setting it. Ruby C equivalent = "rb_cvar_set"

Parameters:
name - The variable name to set
value - The value to set it to

getClassVar

public IRubyObject getClassVar(java.lang.String name)
Retrieve the specified class variable, searching through this module, included modules, and supermodules. Ruby C equivalent = "rb_cvar_get"

Parameters:
name - The name of the variable to retrieve
Returns:
The variable's value, or throws NameError if not found

isClassVarDefined

public boolean isClassVarDefined(java.lang.String name)
Is class var defined? Ruby C equivalent = "rb_cvar_defined"

Parameters:
name - The class var to determine "is defined?"
Returns:
true if true, false if false

setConstant

public IRubyObject setConstant(java.lang.String name,
                               IRubyObject value)
Set the named constant on this module. Also, if the value provided is another Module and that module has not yet been named, assign it the specified name.

Parameters:
name - The name to assign
value - The value to assign to it; if an unnamed Module, also set its basename to name
Returns:
The result of setting the variable.
See Also:
RubyObject.setInstanceVariable(String, IRubyObject, String, String)

getClass

public RubyClass getClass(java.lang.String name)
Finds a class that is within the current module (or class).

Parameters:
name - to be found in this module (or class)
Returns:
the class or null if no such class

const_missing

public IRubyObject const_missing(IRubyObject name,
                                 Block block)
Base implementation of Module#const_missing, throws NameError for specific missing constant.

Parameters:
name - The constant name which was found to be missing
Returns:
Nothing! Absolutely nothing! (though subclasses might choose to return something)

includeModule

public void includeModule(IRubyObject arg)
Include a new module in this module or class.

Parameters:
arg - The module to include

defineMethod

public void defineMethod(java.lang.String name,
                         Callback method)

defineFastMethod

public void defineFastMethod(java.lang.String name,
                             Callback method)

defineFastMethod

public void defineFastMethod(java.lang.String name,
                             Callback method,
                             Visibility visibility)

definePrivateMethod

public void definePrivateMethod(java.lang.String name,
                                Callback method)

defineFastPrivateMethod

public void defineFastPrivateMethod(java.lang.String name,
                                    Callback method)

defineFastProtectedMethod

public void defineFastProtectedMethod(java.lang.String name,
                                      Callback method)

undefineMethod

public void undefineMethod(java.lang.String name)

undef

public void undef(java.lang.String name)
rb_undef


include_p

public IRubyObject include_p(IRubyObject arg)

addMethod

public void addMethod(java.lang.String name,
                      DynamicMethod method)

removeCachedMethod

public void removeCachedMethod(java.lang.String name)

removeMethod

public void removeMethod(java.lang.String name)

searchMethod

public DynamicMethod searchMethod(java.lang.String name)
Search through this module and supermodules for method definitions. Cache superclass definitions in this class.

Parameters:
name - The name of the method to search for
Returns:
The method, or UndefinedMethod if not found

retrieveMethod

public DynamicMethod retrieveMethod(java.lang.String name)
Search through this module and supermodules for method definitions. Cache superclass definitions in this class.

Parameters:
name - The name of the method to search for
Returns:
The method, or UndefinedMethod if not found

findImplementer

public RubyModule findImplementer(RubyModule clazz)
Search through this module and supermodules for method definitions. Cache superclass definitions in this class.

Returns:
The method, or UndefinedMethod if not found

addModuleFunction

public void addModuleFunction(java.lang.String name,
                              DynamicMethod method)

defineModuleFunction

public void defineModuleFunction(java.lang.String name,
                                 Callback method)
rb_define_module_function


definePublicModuleFunction

public void definePublicModuleFunction(java.lang.String name,
                                       Callback method)
rb_define_module_function


defineFastModuleFunction

public void defineFastModuleFunction(java.lang.String name,
                                     Callback method)
rb_define_module_function


defineFastPublicModuleFunction

public void defineFastPublicModuleFunction(java.lang.String name,
                                           Callback method)
rb_define_module_function


getConstant

public IRubyObject getConstant(java.lang.String name)
Retrieve the named constant, invoking 'const_missing' should that be appropriate.

Parameters:
name - The constant to retrieve
Returns:
The value for the constant, or null if not found

getConstantFrom

public IRubyObject getConstantFrom(java.lang.String name)

getConstantAt

public IRubyObject getConstantAt(java.lang.String name)

defineAlias

public void defineAlias(java.lang.String name,
                        java.lang.String oldName)
rb_alias


defineOrGetClassUnder

public RubyClass defineOrGetClassUnder(java.lang.String name,
                                       RubyClass superClazz)

defineClassUnder

public RubyClass defineClassUnder(java.lang.String name,
                                  RubyClass superClazz,
                                  ObjectAllocator allocator)
rb_define_class_under


defineModuleUnder

public RubyModule defineModuleUnder(java.lang.String name)

defineConstant

public void defineConstant(java.lang.String name,
                           IRubyObject value)
rb_define_const


removeCvar

public IRubyObject removeCvar(IRubyObject name)
rb_mod_remove_cvar


setMethodVisibility

public void setMethodVisibility(IRubyObject[] methods,
                                Visibility visibility)
set_method_visibility


exportMethod

public void exportMethod(java.lang.String name,
                         Visibility visibility)
rb_export_method


isMethodBound

public boolean isMethodBound(java.lang.String name,
                             boolean checkVisibility)
MRI: rb_method_boundp


newMethod

public IRubyObject newMethod(IRubyObject receiver,
                             java.lang.String name,
                             boolean bound)

define_method

public IRubyObject define_method(IRubyObject[] args,
                                 Block block)

executeUnder

public IRubyObject executeUnder(Callback method,
                                IRubyObject[] args,
                                Block block)

newModule

public static RubyModule newModule(Ruby runtime,
                                   java.lang.String name)

newModule

public static RubyModule newModule(Ruby runtime,
                                   RubyClass type,
                                   java.lang.String name)

newModule

public static RubyModule newModule(Ruby runtime,
                                   java.lang.String name,
                                   SinglyLinkedList parentCRef)

newModule

public static RubyModule newModule(Ruby runtime,
                                   RubyClass type,
                                   java.lang.String name,
                                   SinglyLinkedList parentCRef)

name

public RubyString name()

class_variables

public RubyArray class_variables()
rb_mod_class_variables


class_variable_get

public IRubyObject class_variable_get(IRubyObject var)
rb_mod_cvar_get


class_variable_set

public IRubyObject class_variable_set(IRubyObject var,
                                      IRubyObject value)
rb_mod_cvar_set


cloneMethods

protected IRubyObject cloneMethods(RubyModule clone)

doClone

protected IRubyObject doClone()
Overrides:
doClone in class RubyObject

initialize_copy

public IRubyObject initialize_copy(IRubyObject original)
rb_mod_init_copy

Overrides:
initialize_copy in class RubyObject

included_modules

public RubyArray included_modules()
rb_mod_included_modules


ancestors

public RubyArray ancestors()
rb_mod_ancestors


getAncestorList

public java.util.List getAncestorList()

hasModuleInHierarchy

public boolean hasModuleInHierarchy(RubyModule type)

hashCode

public int hashCode()
Overrides:
hashCode in class RubyObject

hash

public RubyFixnum hash()
Overrides:
hash in class RubyObject

to_s

public IRubyObject to_s()
rb_mod_to_s

Overrides:
to_s in class RubyObject

op_eqq

public RubyBoolean op_eqq(IRubyObject obj)
rb_mod_eqq


op_le

public IRubyObject op_le(IRubyObject obj)
rb_mod_le


op_lt

public IRubyObject op_lt(IRubyObject obj)
rb_mod_lt


op_ge

public IRubyObject op_ge(IRubyObject obj)
rb_mod_ge


op_gt

public IRubyObject op_gt(IRubyObject obj)
rb_mod_gt


op_cmp

public IRubyObject op_cmp(IRubyObject obj)
rb_mod_cmp


isKindOfModule

public boolean isKindOfModule(RubyModule type)

isSame

public boolean isSame(RubyModule module)

initialize

public IRubyObject initialize(IRubyObject[] args,
                              Block block)
rb_mod_initialize

Overrides:
initialize in class RubyObject

attr

public IRubyObject attr(IRubyObject[] args)
rb_mod_attr


attr_reader

public IRubyObject attr_reader(IRubyObject[] args)
rb_mod_attr_reader


attr_writer

public IRubyObject attr_writer(IRubyObject[] args)
rb_mod_attr_writer


attr_accessor

public IRubyObject attr_accessor(IRubyObject[] args)
rb_mod_attr_accessor


const_get

public IRubyObject const_get(IRubyObject symbol)
rb_mod_const_get


const_set

public IRubyObject const_set(IRubyObject symbol,
                             IRubyObject value)
rb_mod_const_set


const_defined

public RubyBoolean const_defined(IRubyObject symbol)
rb_mod_const_defined


instance_methods

public RubyArray instance_methods(IRubyObject[] args)

public_instance_methods

public RubyArray public_instance_methods(IRubyObject[] args)

instance_method

public IRubyObject instance_method(IRubyObject symbol)

protected_instance_methods

public RubyArray protected_instance_methods(IRubyObject[] args)
rb_class_protected_instance_methods


private_instance_methods

public RubyArray private_instance_methods(IRubyObject[] args)
rb_class_private_instance_methods


constants

public RubyArray constants()
rb_mod_constants


remove_class_variable

public IRubyObject remove_class_variable(IRubyObject name)
rb_mod_remove_cvar


remove_const

public IRubyObject remove_const(IRubyObject name)

append_features

public RubyModule append_features(IRubyObject module)
rb_mod_append_features


extend_object

public IRubyObject extend_object(IRubyObject obj)
rb_mod_extend_object


include

public RubyModule include(IRubyObject[] modules)
rb_mod_include


included

public IRubyObject included(IRubyObject other)

extended

public IRubyObject extended(IRubyObject other,
                            Block block)

rbPublic

public RubyModule rbPublic(IRubyObject[] args)
rb_mod_public


rbProtected

public RubyModule rbProtected(IRubyObject[] args)
rb_mod_protected


rbPrivate

public RubyModule rbPrivate(IRubyObject[] args)
rb_mod_private


module_function

public RubyModule module_function(IRubyObject[] args)
rb_mod_modfunc


method_added

public IRubyObject method_added(IRubyObject nothing,
                                Block block)

method_removed

public IRubyObject method_removed(IRubyObject nothing,
                                  Block block)

method_undefined

public IRubyObject method_undefined(IRubyObject nothing,
                                    Block block)

method_defined

public RubyBoolean method_defined(IRubyObject symbol)

public_method_defined

public IRubyObject public_method_defined(IRubyObject symbol)

protected_method_defined

public IRubyObject protected_method_defined(IRubyObject symbol)

private_method_defined

public IRubyObject private_method_defined(IRubyObject symbol)

public_class_method

public RubyModule public_class_method(IRubyObject[] args)

private_class_method

public RubyModule private_class_method(IRubyObject[] args)

alias_method

public RubyModule alias_method(IRubyObject newId,
                               IRubyObject oldId)

undef_method

public RubyModule undef_method(IRubyObject name)

module_eval

public IRubyObject module_eval(IRubyObject[] args,
                               Block block)

remove_method

public RubyModule remove_method(IRubyObject[] args)

marshalTo

public static void marshalTo(RubyModule module,
                             MarshalStream output)
                      throws java.io.IOException
Throws:
java.io.IOException

unmarshalFrom

public static RubyModule unmarshalFrom(UnmarshalStream input)
                                throws java.io.IOException
Throws:
java.io.IOException

getCRef

public SinglyLinkedList getCRef()

nesting

public static RubyArray nesting(IRubyObject recv,
                                Block block)
Return an array of nested modules or classes.



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