Logo Search packages:      
Sourcecode: jruby1.0 version File versions

org::jruby::RubyModule Class Reference

Inheritance diagram for org::jruby::RubyModule:

org::jruby::RubyObject org::jruby::runtime::builtin::IRubyObject org::jruby::RubyClass org::jruby::IncludedModuleWrapper

List of all members.


Detailed Description

Author:
jpetersen

Definition at line 74 of file RubyModule.java.


Public Member Functions

void addFinalizer (RubyProc finalizer)
void addMethod (String name, DynamicMethod method)
void addModuleFunction (String name, DynamicMethod method)
RubyModule alias_method (IRubyObject newId, IRubyObject oldId)
RubyArray ancestors ()
IRubyObject anyToString ()
RubyModule append_features (IRubyObject module)
RubyString asString ()
String asSymbol ()
void attachToObjectSpace ()
IRubyObject attr (IRubyObject[] args)
IRubyObject attr_accessor (IRubyObject[] args)
IRubyObject attr_reader (IRubyObject[] args)
IRubyObject attr_writer (IRubyObject[] args)
void callInit (IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, Block block)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
IRubyObject callMethod (ThreadContext context, String name)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject checkArrayType ()
IRubyObject checkStringType ()
IRubyObject class_variable_get (IRubyObject var)
IRubyObject class_variable_set (IRubyObject var, IRubyObject value)
RubyArray class_variables ()
IRubyObject compilerCallMethod (ThreadContext context, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
IRubyObject compilerCallMethodWithIndex (ThreadContext context, int methodIndex, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
RubyBoolean const_defined (IRubyObject symbol)
IRubyObject const_get (IRubyObject symbol)
IRubyObject const_missing (IRubyObject name, Block block)
IRubyObject const_set (IRubyObject symbol, IRubyObject value)
RubyArray constants ()
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyString convertToString ()
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, boolean raise)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raise)
IRubyObject convertToTypeWithCheck (RubyClass targetType, int convertMethodIndex, String convertMethod)
synchronized Object dataGetStruct ()
synchronized void dataWrapStruct (Object obj)
IRubyObject define_method (IRubyObject[] args, Block block)
synchronized void defineAlias (String name, String oldName)
RubyClass defineClassUnder (String name, RubyClass superClazz, ObjectAllocator allocator)
void defineConstant (String name, IRubyObject value)
void defineFastMethod (String name, Callback method, Visibility visibility)
void defineFastMethod (String name, Callback method)
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)
void definePrivateMethod (String name, Callback method)
void definePublicModuleFunction (String name, Callback method)
IRubyObject display (IRubyObject[] args)
IRubyObject dup ()
boolean eql (IRubyObject other)
final boolean eqlInternal (final ThreadContext context, final IRubyObject other)
IRubyObject equal (IRubyObject other)
final IRubyObject equalInternal (final ThreadContext context, final IRubyObject other)
boolean equals (Object other)
IRubyObject evalSimple (ThreadContext context, IRubyObject src, String file)
IRubyObject evalUnder (RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalWithBinding (ThreadContext context, IRubyObject src, IRubyObject scope, String file)
IRubyObject executeUnder (Callback method, IRubyObject[] args, Block block)
void exportMethod (String name, Visibility visibility)
IRubyObject extend (IRubyObject[] args)
IRubyObject extend_object (IRubyObject obj)
IRubyObject extended (IRubyObject other, Block block)
RubyModule findImplementer (RubyModule clazz)
IRubyObject freeze ()
RubyBoolean frozen ()
List getAncestorList ()
String getBaseName ()
RubyClass getClass (String name)
IRubyObject getClassVar (String name)
IRubyObject getConstant (String name)
IRubyObject getConstantAt (String name)
IRubyObject getConstantFrom (String name)
SinglyLinkedList getCRef ()
IRubyObject getInstanceVariable (String name)
Map getInstanceVariables ()
Map getInstanceVariablesSnapshot ()
Class getJavaClass ()
final RubyClass getMetaClass ()
Map getMethods ()
String getName ()
int getNativeTypeIndex ()
RubyModule getNonIncludedClass ()
RubyModule getParent ()
Ruby getRuntime ()
RubyClass getSingletonClass ()
RubyClass getSingletonClassClone ()
RubyClass getSuperClass ()
RubyClass getType ()
RubyFixnum hash ()
int hashCode ()
boolean hasModuleInHierarchy (RubyModule type)
synchronized RubyFixnum id ()
synchronized RubyFixnum id_deprecated ()
RubyModule include (IRubyObject[] modules)
IRubyObject include_p (IRubyObject arg)
IRubyObject included (IRubyObject other)
RubyArray included_modules ()
synchronized void includeModule (IRubyObject arg)
IRubyObject infectBy (IRubyObject obj)
IRubyObject inherited (IRubyObject arg, Block block)
IRubyObject initialize (IRubyObject[] args, Block block)
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject instance_eval (IRubyObject[] args, Block block)
IRubyObject instance_exec (IRubyObject[] args, Block block)
IRubyObject instance_method (IRubyObject symbol)
RubyArray instance_methods (IRubyObject[] args)
RubyBoolean instance_of (IRubyObject type)
IRubyObject instance_variable_get (IRubyObject var)
IRubyObject instance_variable_set (IRubyObject var, IRubyObject value)
RubyArray instance_variables ()
Iterator instanceVariableNames ()
boolean isClass ()
boolean isClassVarDefined (String name)
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isIncluded ()
boolean isKindOf (RubyModule type)
boolean isKindOfModule (RubyModule type)
boolean isMethodBound (String name, boolean checkVisibility)
boolean isModule ()
boolean isNil ()
boolean isSame (RubyModule module)
boolean isSingleton ()
boolean isTaint ()
final boolean isTrue ()
RubyBoolean kind_of (IRubyObject type)
RubyClass makeMetaClass (RubyClass superClass, SinglyLinkedList parentCRef)
IRubyObject match (IRubyObject arg)
IRubyObject method (IRubyObject symbol)
IRubyObject method_added (IRubyObject nothing, Block block)
RubyBoolean method_defined (IRubyObject symbol)
IRubyObject method_missing (IRubyObject[] args, Block block)
IRubyObject method_removed (IRubyObject nothing, Block block)
IRubyObject method_undefined (IRubyObject nothing, Block block)
IRubyObject methods (IRubyObject[] args)
IRubyObject module_eval (IRubyObject[] args, Block block)
RubyModule module_function (IRubyObject[] args)
RubyString name ()
IncludedModuleWrapper newIncludeClass (RubyClass superClazz)
IRubyObject newMethod (IRubyObject receiver, String name, boolean bound)
IRubyObject nil_p ()
IRubyObject obj_equal (IRubyObject obj)
IRubyObject op_cmp (IRubyObject obj)
RubyBoolean op_eqq (IRubyObject obj)
IRubyObject op_ge (IRubyObject obj)
IRubyObject op_gt (IRubyObject obj)
IRubyObject op_le (IRubyObject obj)
IRubyObject op_lt (IRubyObject obj)
RubyModule private_class_method (IRubyObject[] args)
RubyArray private_instance_methods (IRubyObject[] args)
IRubyObject private_methods ()
RubyArray protected_instance_methods (IRubyObject[] args)
IRubyObject protected_methods ()
RubyModule public_class_method (IRubyObject[] args)
RubyArray public_instance_methods (IRubyObject[] args)
IRubyObject public_methods (IRubyObject[] args)
void putMethod (Object name, DynamicMethod method)
IRubyObject rbClone (Block unusedBlock)
RubyModule rbPrivate (IRubyObject[] args)
RubyModule rbProtected (IRubyObject[] args)
RubyModule rbPublic (IRubyObject[] args)
IRubyObject remove_class_variable (IRubyObject name)
IRubyObject remove_const (IRubyObject name)
IRubyObject remove_instance_variable (IRubyObject name, Block block)
RubyModule remove_method (IRubyObject[] args)
void removeCachedMethod (String name)
IRubyObject removeCvar (IRubyObject name)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
void removeMethod (String name)
RubyBoolean respond_to (IRubyObject[] args)
boolean respondsTo (String name)
DynamicMethod retrieveMethod (String name)
Map safeGetInstanceVariables ()
boolean safeHasInstanceVariables ()
DynamicMethod searchMethod (String name)
IRubyObject send (IRubyObject[] args, Block block)
void setBaseName (String name)
IRubyObject setClassVar (String name, IRubyObject value)
IRubyObject setConstant (String name, IRubyObject value)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
IRubyObject setInstanceVariable (String name, IRubyObject value, String taintError, String freezeError)
void setInstanceVariables (Map instanceVariables)
void setMetaClass (RubyClass metaClass)
void setMethodVisibility (IRubyObject[] methods, Visibility visibility)
void setParent (RubyModule p)
void setTaint (boolean taint)
RubyArray singleton_methods (IRubyObject[] args)
IRubyObject specificEval (RubyModule mod, IRubyObject[] args, Block block)
IRubyObject taint ()
RubyBoolean tainted ()
IRubyObject to_s ()
String toString ()
RubyClass type ()
RubyClass type_deprecated ()
void undef (String name)
RubyModule undef_method (IRubyObject name)
void undefineMethod (String name)
IRubyObject untaint ()

Static Public Member Functions

static IRubyObject callMethodMissingIfNecessary (ThreadContext context, IRubyObject receiver, DynamicMethod method, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
static RubyClass createModuleClass (Ruby runtime, RubyClass moduleClass)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static void initCopy (IRubyObject clone, IRubyObject original)
static void marshalTo (RubyModule module, MarshalStream output) throws java.io.IOException
static RubyArray nesting (IRubyObject recv, Block block)
static RubyModule newModule (Ruby runtime, RubyClass type, String name, SinglyLinkedList parentCRef)
static RubyModule newModule (Ruby runtime, String name, SinglyLinkedList parentCRef)
static RubyModule newModule (Ruby runtime, RubyClass type, String name)
static RubyModule newModule (Ruby runtime, String name)
static void puts (Object obj)
static String trueFalseNil (String v)
static String trueFalseNil (IRubyObject v)
static RubyModule unmarshalFrom (UnmarshalStream input) throws java.io.IOException

Public Attributes

SinglyLinkedList cref
final int id
int index

Static Public Attributes

static final byte EQQ_SWITCHVALUE = 1
static final IRubyObject NEVER = new RubyObject()
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static ObjectAllocator OBJECT_ALLOCATOR

Protected Member Functions

void checkFrozen ()
IRubyObject cloneMethods (RubyModule clone)
IRubyObject doClone ()
 RubyModule (Ruby runtime, RubyClass metaClass, RubyClass superClass, SinglyLinkedList parentCRef, String name)
void setSuperClass (RubyClass superClass)
void testFrozen (String message)

Protected Attributes

Map instanceVariables
boolean isTrue = true
RubyClass metaClass

Static Package Attributes

static ObjectAllocator MODULE_ALLOCATOR

Private Member Functions

void addAccessor (String name, boolean readable, boolean writeable)
void addCachedMethod (String name, DynamicMethod method)
RaiseException cannotRemoveError (String id)
IRubyObject getConstantInner (String name, boolean exclude)
RubyModule getModuleWithInstanceVar (String name)
RubyArray instance_methods (IRubyObject[] args, final Visibility visibility)
void setVisibility (IRubyObject[] args, Visibility visibility)
RaiseException wrongConstantNameError (String name)

Private Attributes

String classId
Map methods = new HashMap()
RubyClass superClass

Static Private Attributes

static final String CVAR_FREEZE_ERROR = "class/module"
static final String CVAR_TAINT_ERROR

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

Generated by  Doxygen 1.6.0   Back to index