Logo Search packages:      
Sourcecode: jruby version File versions  Download package

Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Package Functions | Static Package Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes

org::jruby::RubyModule Class Reference

Inheritance diagram for org::jruby::RubyModule:
Inheritance graph
[legend]
Collaboration diagram for org::jruby::RubyModule:
Collaboration graph
[legend]

List of all members.

Classes

class  CacheEntryFactory
class  Generation
class  KindOf
class  MethodClumper
class  ModuleKernelMethods

Public Member Functions

synchronized void addClassProvider (ClassProvider provider)
void addFinalizer (IRubyObject f)
void addIncludingHierarchy (IncludedModuleWrapper hierarchy)
void addMethod (String name, DynamicMethod method)
void addMethodAtBootTimeOnly (String name, DynamicMethod method)
void addMethodInternal (String name, DynamicMethod method)
void addModuleFunction (String name, DynamicMethod method)
void addReadAttribute (ThreadContext context, String name)
void addReadWriteAttribute (ThreadContext context, String name)
void addWriteAttribute (ThreadContext context, String name)
RubyModule alias_method (ThreadContext context, IRubyObject newId, IRubyObject oldId)
RubyArray ancestors (ThreadContext context)
RubyArray ancestors ()
IRubyObject anyToString ()
RubyModule append_features (IRubyObject module)
String asJavaString ()
RubyString asString ()
void attachToObjectSpace ()
IRubyObject attr (ThreadContext context, IRubyObject[] args)
IRubyObject attr19 (ThreadContext context, IRubyObject[] args)
IRubyObject attr_accessor (IRubyObject[] args)
IRubyObject attr_accessor (ThreadContext context, IRubyObject[] args)
IRubyObject attr_reader (IRubyObject[] args)
IRubyObject attr_reader (ThreadContext context, IRubyObject[] args)
IRubyObject attr_writer (ThreadContext context, IRubyObject[] args)
void becomeSynchronized ()
final void callInit (IRubyObject[] args, Block block)
final IRubyObject callMethod (ThreadContext context, String name)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
final IRubyObject callMethod (String name, IRubyObject...args)
final IRubyObject callMethod (String name)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
final IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
final IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject checkArrayType ()
final IRubyObject checkCallMethod (ThreadContext context, String name)
IRubyObject checkStringType ()
IRubyObject checkStringType19 ()
IRubyObject class_variable_defined_p (ThreadContext context, IRubyObject var)
IRubyObject class_variable_get (IRubyObject var)
IRubyObject class_variable_set (IRubyObject var, IRubyObject value)
RubyArray class_variables (ThreadContext context)
RubyArray class_variables19 (ThreadContext context)
int compareTo (IRubyObject other)
RubyBoolean const_defined_p (ThreadContext context, IRubyObject symbol)
RubyBoolean const_defined_p19 (ThreadContext context, IRubyObject symbol)
IRubyObject const_get (IRubyObject symbol)
IRubyObject const_missing (ThreadContext context, IRubyObject rubyName, Block block)
IRubyObject const_set (IRubyObject symbol, IRubyObject value)
RubyArray constants (ThreadContext context)
RubyArray constants19 (ThreadContext context)
RubyArray constants19 (ThreadContext context, IRubyObject allConstants)
Collection< String > constantsCommon (Ruby runtime, boolean allConstants)
RubyArray constantsCommon19 (ThreadContext context, boolean allConstants)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyInteger convertToInteger (int methodIndex, String convertMethod)
RubyInteger convertToInteger (String convertMethod)
RubyString convertToString ()
final IRubyObject convertToType (RubyClass target, int convertMethodIndex)
void copyInstanceVariablesInto (final InstanceVariables other)
void copyInstanceVariablesInto (InstanceVariables other)
void copySpecialInstanceVariables (IRubyObject clone)
synchronized Object dataGetStruct ()
synchronized Object dataGetStructChecked ()
synchronized void dataWrapStruct (Object obj)
IRubyObject define_method (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject define_method (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject define_method (ThreadContext context, IRubyObject[] args, Block block)
synchronized void defineAlias (String name, String oldName)
synchronized void defineAliases (List< String > aliases, String oldName)
boolean defineAnnotatedConstant (Field field)
void defineAnnotatedConstants (Class clazz)
boolean defineAnnotatedMethod (String name, List< JavaMethodDescriptor > methods, MethodFactory methodFactory)
boolean defineAnnotatedMethod (Method method, MethodFactory methodFactory)
boolean defineAnnotatedMethod (JavaMethodDescriptor desc, MethodFactory methodFactory)
void defineAnnotatedMethod (Class clazz, String name)
void defineAnnotatedMethods (Class clazz)
void defineAnnotatedMethodsIndividually (Class clazz)
RubyClass defineClassUnder (String name, RubyClass superClass, ObjectAllocator allocator)
void defineConstant (String name, IRubyObject value)
void defineFastMethod (String name, Callback method)
void defineFastMethod (String name, Callback method, Visibility visibility)
void defineFastModuleFunction (String name, Callback method)
void defineFastPrivateMethod (String name, Callback method)
void defineFastProtectedMethod (String name, Callback method)
void defineFastPublicModuleFunction (String name, Callback method)
void defineMethod (String name, Callback method)
void defineModuleFunction (String name, Callback method)
RubyModule defineModuleUnder (String name)
RubyClass defineOrGetClassUnder (String name, RubyClass superClazz)
RubyModule defineOrGetModuleUnder (String name)
void definePrivateMethod (String name, Callback method)
void definePublicModuleFunction (String name, Callback method)
IRubyObject deleteClassVariable (String name)
IRubyObject deleteConstant (String name)
IRubyObject display (ThreadContext context, IRubyObject[] args)
IRubyObject dup ()
boolean eql (IRubyObject other)
IRubyObject eql_p (IRubyObject obj)
IRubyObject equal_p (ThreadContext context, IRubyObject obj)
IRubyObject equal_p19 (ThreadContext context, IRubyObject other)
boolean equals (Object other)
IRubyObject evalUnder (final ThreadContext context, RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalUnder (final ThreadContext context, RubyModule under, RubyString src, String file, int line)
IRubyObject executeUnder (ThreadContext context, Callback method, IRubyObject[] args, Block block)
void exportMethod (String name, Visibility visibility)
IRubyObject extend (IRubyObject[] args)
IRubyObject extend_object (IRubyObject obj)
IRubyObject extended (ThreadContext context, IRubyObject other, Block block)
IRubyObject fastFetchClassVariable (String internedName)
IRubyObject fastFetchConstant (String internedName)
RubyClass fastGetClass (String internedName)
IRubyObject fastGetClassVar (String internedName)
IRubyObject fastGetConstant (String internedName)
IRubyObject fastGetConstantAt (String internedName)
IRubyObject fastGetConstantFrom (String internedName)
IRubyObject fastGetConstantFromConstMissing (String internedName)
IRubyObject fastGetConstantFromNoConstMissing (String internedName)
IRubyObject fastGetInstanceVariable (String internedName)
Object fastGetInternalVariable (String internedName)
boolean fastHasClassVariable (String internedName)
boolean fastHasConstant (String internedName)
boolean fastHasInstanceVariable (String internedName)
boolean fastHasInternalVariable (String internedName)
boolean fastIsClassVarDefined (String internedName)
boolean fastIsConstantDefined (String internedName)
boolean fastIsConstantDefined19 (String internedName)
IRubyObject fastSetClassVar (final String internedName, final IRubyObject value)
IRubyObject fastSetConstant (String internedName, IRubyObject value)
IRubyObject fastSetInstanceVariable (String internedName, IRubyObject value)
void fastSetInternalVariable (String internedName, Object value)
IRubyObject fastStoreClassVariable (String internedName, IRubyObject value)
IRubyObject fastStoreConstant (String internedName, IRubyObject value)
IRubyObject fetchClassVariable (String name)
IRubyObject fetchConstant (String name)
RubyModule findImplementer (RubyModule clazz)
final IRubyObject freeze (ThreadContext context)
RubyBoolean frozen_p (ThreadContext context)
List< IRubyObjectgetAncestorList ()
String getBaseName ()
final Object getCacheToken ()
RubyClass getClass (String name)
IRubyObject getClassVar (String name)
List< String > getClassVariableNameList ()
IRubyObject getConstant (String name)
IRubyObject getConstantAt (String name)
IRubyObject getConstantFrom (String name)
Map< String, IRubyObjectgetConstantMap ()
synchronized Map< String,
IRubyObject
getConstantMapForWrite ()
Collection< String > getConstantNames ()
IRubyObject getConstantNoConstMissing (String name)
final boolean getFlag (int flag)
IRubyObject getInstanceVariable (String name)
List< Variable< IRubyObject > > getInstanceVariableList ()
List< String > getInstanceVariableNameList ()
InstanceVariables getInstanceVariables ()
Object getInternalVariable (String name)
InternalVariables getInternalVariables ()
Class getJavaClass ()
final RubyClass getMetaClass ()
Map< String, DynamicMethodgetMethods ()
synchronized Map< String,
DynamicMethod
getMethodsForWrite ()
String getName ()
int getNativeTypeIndex ()
RubyModule getNonIncludedClass ()
RubyModule getParent ()
final Ruby getRuntime ()
RubyClass getSingletonClass ()
List< Variable< IRubyObject > > getStoredConstantList ()
List< String > getStoredConstantNameList ()
RubyClass getSuperClass ()
RubyClass getType ()
Object getVariable (int index)
int getVariableCount ()
List< Variable< Object > > getVariableList ()
List< String > getVariableNameList ()
boolean hasClassVariable (String name)
boolean hasConstant (String name)
RubyFixnum hash ()
int hashCode ()
IRubyObject hashyInspect ()
boolean hasInstanceVariable (String name)
boolean hasInternalModuleVariable (final String name)
boolean hasInternalVariable (String name)
boolean hasModuleInHierarchy (RubyModule type)
boolean hasVariables ()
IRubyObject id ()
IRubyObject id_deprecated ()
RubyModule include (IRubyObject[] modules)
IRubyObject include_p (ThreadContext context, IRubyObject arg)
IRubyObject included (ThreadContext context, IRubyObject other)
RubyArray included_modules (ThreadContext context)
synchronized void includeModule (IRubyObject arg)
IRubyObject infectBy (IRubyObject obj)
IRubyObject initialize ()
IRubyObject initialize (Block block)
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject instance_eval (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject instance_eval (ThreadContext context, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject instance_exec (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject instance_method (IRubyObject symbol)
RubyArray instance_methods (IRubyObject[] args)
RubyArray instance_methods19 (IRubyObject[] args)
RubyBoolean instance_of_p (ThreadContext context, IRubyObject type)
IRubyObject instance_variable_defined_p (ThreadContext context, IRubyObject name)
IRubyObject instance_variable_get (ThreadContext context, IRubyObject name)
IRubyObject instance_variable_set (IRubyObject name, IRubyObject value)
RubyArray instance_variables (ThreadContext context)
void invalidateCacheDescendants ()
boolean isBuiltin (String methodName)
boolean isClass ()
boolean isClassVarDefined (String name)
boolean isConstantDefined (String name)
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isIncluded ()
boolean isInstance (IRubyObject object)
boolean isKindOfModule (RubyModule type)
boolean isMethodBound (String name, boolean checkVisibility)
boolean isModule ()
final boolean isNil ()
boolean isSingleton ()
boolean isSynchronized ()
boolean isTaint ()
final boolean isTrue ()
boolean isUntrusted ()
RubyBoolean kind_of_p (ThreadContext context, IRubyObject type)
RubyClass makeMetaClass (RubyClass superClass)
IRubyObject method (IRubyObject symbol)
IRubyObject method_added (ThreadContext context, IRubyObject nothing)
RubyBoolean method_defined_p (ThreadContext context, IRubyObject symbol)
IRubyObject method_removed (ThreadContext context, IRubyObject nothing)
IRubyObject method_undefined (ThreadContext context, IRubyObject nothing)
IRubyObject methods (ThreadContext context, IRubyObject[] args)
IRubyObject methods (ThreadContext context, IRubyObject[] args, boolean useSymbols)
IRubyObject methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject module_eval (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject module_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject module_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject module_eval (ThreadContext context, Block block)
IRubyObject module_eval (ThreadContext context, IRubyObject[] args, Block block)
RubyModule module_function (ThreadContext context, IRubyObject[] args)
IRubyObject name ()
IRubyObject name19 ()
boolean needsImplementer ()
IncludedModuleWrapper newIncludeClass (RubyClass superClazz)
IRubyObject newMethod (IRubyObject receiver, String name, boolean bound)
IRubyObject nil_p (ThreadContext context)
IRubyObject op_cmp (IRubyObject obj)
RubyBoolean op_eqq (ThreadContext context, IRubyObject obj)
IRubyObject op_equal (ThreadContext context, IRubyObject other)
IRubyObject op_equal_19 (ThreadContext context, IRubyObject obj)
IRubyObject op_ge (IRubyObject obj)
IRubyObject op_gt (IRubyObject obj)
IRubyObject op_le (IRubyObject obj)
IRubyObject op_lt (IRubyObject obj)
IRubyObject op_match (ThreadContext context, IRubyObject arg)
IRubyObject op_not (ThreadContext context)
IRubyObject op_not_equal (ThreadContext context, IRubyObject other)
IRubyObject op_not_match (ThreadContext context, IRubyObject arg)
void populateInstanceMethodNames (Set< String > seen, RubyArray ary, final Visibility visibility, boolean not, boolean useSymbols, boolean includeSuper)
RubyModule private_class_method (IRubyObject[] args)
RubyArray private_instance_methods (IRubyObject[] args)
RubyArray private_instance_methods19 (IRubyObject[] args)
IRubyObject private_method_defined (ThreadContext context, IRubyObject symbol)
IRubyObject private_methods (ThreadContext context, IRubyObject[] args)
IRubyObject private_methods19 (ThreadContext context, IRubyObject[] args)
RubyArray protected_instance_methods (IRubyObject[] args)
RubyArray protected_instance_methods19 (IRubyObject[] args)
IRubyObject protected_method_defined (ThreadContext context, IRubyObject symbol)
IRubyObject protected_methods (ThreadContext context, IRubyObject[] args)
IRubyObject protected_methods19 (ThreadContext context, IRubyObject[] args)
RubyModule public_class_method (IRubyObject[] args)
RubyArray public_instance_methods (IRubyObject[] args)
RubyArray public_instance_methods19 (IRubyObject[] args)
IRubyObject public_method_defined (ThreadContext context, IRubyObject symbol)
IRubyObject public_methods (ThreadContext context, IRubyObject[] args)
IRubyObject public_methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject rbClone ()
RubyModule rbPrivate (ThreadContext context, IRubyObject[] args)
RubyModule rbProtected (ThreadContext context, IRubyObject[] args)
RubyModule rbPublic (ThreadContext context, IRubyObject[] args)
IRubyObject remove_class_variable (ThreadContext context, IRubyObject name)
IRubyObject remove_const (ThreadContext context, IRubyObject rubyName)
IRubyObject remove_instance_variable (ThreadContext context, IRubyObject name, Block block)
RubyModule remove_method (ThreadContext context, IRubyObject[] args)
void removeClassProvider (ClassProvider provider)
IRubyObject removeCvar (IRubyObject name)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
Object removeInternalVariable (String name)
void removeMethod (ThreadContext context, String name)
IRubyObject resolveUndefConstant (Ruby runtime, String name)
RubyBoolean respond_to_p (IRubyObject mname, IRubyObject includePrivate)
RubyBoolean respond_to_p (IRubyObject mname)
final boolean respondsTo (String name)
DynamicMethod retrieveMethod (String name)
IRubyObject searchInternalModuleVariable (final String name)
DynamicMethod searchMethod (String name)
CacheEntry searchWithCache (String name)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject send (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject send (ThreadContext context, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
void setBaseName (String name)
IRubyObject setClassVar (String name, IRubyObject value)
IRubyObject setConstant (String name, IRubyObject value)
IRubyObject setConstantQuiet (String name, IRubyObject value)
final void setFlag (int flag, boolean set)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
void setInternalModuleVariable (final String name, final IRubyObject value)
void setInternalVariable (String name, Object value)
void setMetaClass (RubyClass metaClass)
void setMethodVisibility (IRubyObject[] methods, Visibility visibility)
void setParent (RubyModule parent)
void setTaint (boolean taint)
void setUntrusted (boolean untrusted)
synchronized void setVariable (int index, Object value)
RubyArray singleton_methods (ThreadContext context, IRubyObject[] args)
RubyArray singleton_methods19 (ThreadContext context, IRubyObject[] args)
RubyArray singletonMethods (ThreadContext context, IRubyObject[] args, boolean asSymbols)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject[] args, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, Block block)
IRubyObject storeClassVariable (String name, IRubyObject value)
IRubyObject storeConstant (String name, IRubyObject value)
void syncConstants (RubyModule other)
void syncVariables (List< Variable< Object >> variables)
IRubyObject taint (ThreadContext context)
RubyBoolean tainted_p (ThreadContext context)
RubyArray to_a ()
IRubyObject to_s ()
Object toJava (Class target)
String toString ()
IRubyObject trust (ThreadContext context)
RubyClass type ()
RubyClass type_deprecated ()
void undef (ThreadContext context, String name)
RubyModule undef_method (ThreadContext context, IRubyObject[] args)
void undefineMethod (String name)
IRubyObject untaint (ThreadContext context)
IRubyObject untrust (ThreadContext context)
RubyBoolean untrusted_p (ThreadContext context)

Static Public Member Functions

static RubyClass createBasicObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createModuleClass (Ruby runtime, RubyClass moduleClass)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static void marshalTo (RubyModule module, MarshalStream output) throws java.io.IOException
static RubyArray nesting (ThreadContext context, IRubyObject recv, Block block)
static RubyModule newModule (Ruby runtime)
static RubyModule newModule (Ruby runtime, String name, RubyModule parent, boolean setParent)
static void puts (Object obj)
static RubyModule unmarshalFrom (UnmarshalStream input) throws java.io.IOException

Public Attributes

final int id
int index
KindOf kindOf = KindOf.DEFAULT_KIND_OF
RubyModule parent

Static Public Attributes

static final int ALL_F = -1
static final int COMPARE_BY_IDENTITY_F = (1<<(FL_USHIFT+8))
static final int FALSE_F = 1 << 0
static final int FL_USHIFT = 5
static final int FROZEN_F = 1 << 2
static final ObjectAllocator MODULE_ALLOCATOR
static final IRubyObject NEVER = new RubyBasicObject()
static final int NIL_F = 1 << 1
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static final ObjectAllocator OBJECT_ALLOCATOR
static final Set< String > SCOPE_CAPTURING_METHODS
static final int TAINTED_F = 1 << 3
static final IRubyObject UNDEF = new RubyBasicObject()
static final int UNTRUSTED_F = 1 << 4
static final int USER0_F = (1<<(FL_USHIFT+0))
static final int USER1_F = (1<<(FL_USHIFT+1))
static final int USER2_F = (1<<(FL_USHIFT+2))
static final int USER3_F = (1<<(FL_USHIFT+3))
static final int USER4_F = (1<<(FL_USHIFT+4))
static final int USER5_F = (1<<(FL_USHIFT+5))
static final int USER6_F = (1<<(FL_USHIFT+6))
static final int USER7_F = (1<<(FL_USHIFT+7))

Protected Member Functions

void checkFrozen ()
IRubyObject cloneMethods (RubyModule clone)
boolean constantTableContains (String name)
boolean constantTableFastContains (String internedName)
IRubyObject constantTableFastFetch (String internedName)
IRubyObject constantTableFastStore (String internedName, IRubyObject value)
IRubyObject constantTableFetch (String name)
IRubyObject constantTableRemove (String name)
IRubyObject constantTableStore (String name, IRubyObject value)
final void ensureClassVariablesSettable ()
final void ensureConstantsSettable ()
final void ensureInstanceVariablesSettable ()
Map< String, IRubyObjectgetClassVariables ()
Map< String, IRubyObjectgetClassVariablesForRead ()
IRubyObject getConstantInner (String name)
synchronized long getObjectId ()
RubyClass getSingletonClassClone ()
synchronized long initObjectId (RubyClass.VariableAccessor objectIdAccessor)
int inspectHashCode ()
void invalidateConstantCache ()
boolean isSame (RubyModule module)
 RubyModule (Ruby runtime)
 RubyModule (Ruby runtime, RubyClass metaClass, Generation generation, boolean objectSpace)
 RubyModule (Ruby runtime, RubyClass metaClass, boolean objectSpace)
 RubyModule (Ruby runtime, RubyClass metaClass)
DynamicMethod searchMethodInner (String name)
void setSuperClass (RubyClass superClass)
void taint (Ruby runtime)
final void testFrozen ()
final void testFrozen (String message)
final String validateClassVariable (String name)
final String validateConstant (String name)
String validateInstanceVariable (String name)
boolean variableTableContains (String name)
boolean variableTableFastContains (String internedName)
Object variableTableFastFetch (String internedName)
Object variableTableFastStore (String internedName, Object value)
Object variableTableFetch (String name)
Object variableTableRemove (String name)
Object variableTableStore (String name, Object value)
void variableTableSync (List< Variable< Object >> vars)

Static Protected Member Functions

static boolean eqlInternal (final ThreadContext context, final IRubyObject that, final IRubyObject other)
static boolean equalInternal (final ThreadContext context, final IRubyObject that, final IRubyObject other)

Protected Attributes

String classId
int flags
final Generation generation
volatile Set< RubyClassincludingHierarchies = Collections.EMPTY_SET
transient RubyClass metaClass
RubyClass superClass

Static Protected Attributes

static final String ERR_FROZEN_CONST_TYPE = "class/module "
static final String ERR_FROZEN_CVAR_TYPE = "class/module "
static final String ERR_INSECURE_SET_CLASS_VAR = "Insecure: can't modify class variable"
static final String ERR_INSECURE_SET_CONSTANT = "Insecure: can't modify constant"
static final String ERR_INSECURE_SET_INST_VAR = "Insecure: can't modify instance variable"
static CacheEntryFactory NormalCacheEntryFactory
static final CacheEntryFactory ProfilingCacheEntryFactory
static CacheEntryFactory SynchronizedCacheEntryFactory

Package Functions

IRubyObject checkIntegerType (Ruby runtime, IRubyObject obj, String method)
final RubyBasicObject infectBy (RubyBasicObject obj)
final RubyBasicObject infectBy (int tuFlags)

Static Package Functions

static RubyString inspect (ThreadContext context, IRubyObject object)

Private Member Functions

void addAccessor (ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable)
CacheEntry addToCache (String name, DynamicMethod method, Object token)
CacheEntry cacheHit (String name)
String calculateFullName ()
RaiseException cannotRemoveError (String id)
void checkForCyclicInclude (RubyModule m) throws RaiseException
Collection< String > classVariablesCommon ()
DynamicMethod createProcMethod (String name, Visibility visibility, RubyProc proc)
boolean doesTheClassWrapTheModule (RubyClass theClass, RubyModule theModule)
void doIncludeModule (RubyModule baseModule)
List< RubyModulegatherModules (RubyModule baseModule)
final Map< String, CacheEntrygetCachedMethods ()
final Map< String, CacheEntrygetCachedMethodsForWrite ()
boolean hasConstantInHierarchy (final String name)
RubyArray instance_methods (IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols)
RubyModule proceedWithInclude (RubyModule insertAbove, RubyModule moduleToInclude)
void putMethod (String name, DynamicMethod method)
RubyClass searchProvidersForClass (String name, RubyClass superClazz)
RubyModule searchProvidersForModule (String name)
IRubyObject setConstantCommon (String name, IRubyObject value, boolean warn)
void setVisibility (ThreadContext context, IRubyObject[] args, Visibility visibility)

Static Private Member Functions

static void define (RubyModule module, JavaMethodDescriptor desc, DynamicMethod dynamicMethod)

Private Attributes

String bareName
Map< String, CacheEntrycachedMethods = Collections.EMPTY_MAP
volatile CacheEntryFactory cacheEntryFactory
transient List< ClassProviderclassProviders
volatile Map< String, IRubyObjectclassVariables = Collections.EMPTY_MAP
volatile Map< String, IRubyObjectconstants = Collections.EMPTY_MAP
String fullName
volatile Map< String,
DynamicMethod
methods = Collections.EMPTY_MAP

Static Private Attributes

static final boolean DEBUG = false

Detailed Description

Author:
jpetersen

Definition at line 107 of file RubyModule.java.


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

Generated by  Doxygen 1.6.0   Back to index