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

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 Attributes | Static Private Attributes

org::jruby::MetaClass Class Reference

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

List of all members.

Public Member Functions

synchronized void addClassAnnotation (Class annotation, Map fields)
synchronized void addClassProvider (ClassProvider provider)
void addFinalizer (IRubyObject f)
void addIncludingHierarchy (IncludedModuleWrapper hierarchy)
void addMethod (String name, DynamicMethod method)
synchronized void addMethodAnnotation (String methodName, Class annotation, Map fields)
void addMethodAtBootTimeOnly (String name, DynamicMethod method)
void addMethodInternal (String name, DynamicMethod method)
synchronized void addMethodSignature (String methodName, Class[] types)
void addModuleFunction (String name, DynamicMethod method)
synchronized void addParameterAnnotation (String method, int i, Class annoClass, Map< String, Object > value)
void addReadAttribute (ThreadContext context, String name)
void addReadWriteAttribute (ThreadContext context, String name)
synchronized void addSubclass (RubyClass subclass)
void addWriteAttribute (ThreadContext context, String name)
RubyModule alias_method (ThreadContext context, IRubyObject newId, IRubyObject oldId)
final IRubyObject allocate ()
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 (ThreadContext context, IRubyObject[] args)
IRubyObject attr_accessor (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 (String convertMethod)
RubyInteger convertToInteger (int methodIndex, String convertMethod)
RubyInteger convertToInteger ()
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, Block block)
IRubyObject define_method (ThreadContext context, IRubyObject arg0, IRubyObject arg1, 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 (Method method, MethodFactory methodFactory)
void defineAnnotatedMethod (Class clazz, String name)
boolean defineAnnotatedMethod (JavaMethodDescriptor desc, MethodFactory methodFactory)
boolean defineAnnotatedMethod (String name, List< JavaMethodDescriptor > methods, MethodFactory methodFactory)
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)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name, Block block)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name, IRubyObject[] args, Block block)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg, Block block)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name, IRubyObject[] args)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
IRubyObject finvoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg)
IRubyObject finvokeChecked (ThreadContext context, IRubyObject self, String name)
final IRubyObject freeze (ThreadContext context)
RubyBoolean frozen_p (ThreadContext context)
ObjectAllocator getAllocator ()
List< IRubyObjectgetAncestorList ()
IRubyObject getAttached ()
CallSite[] getBaseCallSites ()
String getBaseName ()
final Object getCacheToken ()
RubyClass getClass (String name)
Map< Class, Map< String, Object > > getClassAnnotations ()
Ruby getClassRuntime ()
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)
CallSite[] getExtraCallSites ()
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 ObjectMarshal getMarshal ()
final RubyClass getMetaClass ()
Map< String, Map< Class, Map
< String, Object > > > 
getMethodAnnotations ()
Map< String, DynamicMethodgetMethods ()
synchronized Map< String,
DynamicMethod
getMethodsForWrite ()
Map< String, Class[]> getMethodSignatures ()
String getName ()
int getNativeTypeIndex ()
RubyModule getNonIncludedClass ()
VariableAccessor getObjectIdAccessorForRead ()
synchronized VariableAccessor getObjectIdAccessorForWrite ()
Map< String, List< Map< Class,
Map< String, Object > > > > 
getParameterAnnotations ()
RubyModule getParent ()
RubyClass getRealClass ()
Class getReifiedClass ()
final Ruby getRuntime ()
RubyClass getSingletonClass ()
List< Variable< IRubyObject > > getStoredConstantList ()
List< String > getStoredConstantNameList ()
RubyClass getSuperClass ()
RubyClass getType ()
Object getVariable (int index)
VariableAccessor getVariableAccessorForRead (String name)
VariableAccessor getVariableAccessorForWrite (String name)
Map< String, VariableAccessorgetVariableAccessorsForRead ()
int getVariableCount ()
List< Variable< Object > > getVariableList ()
List< String > getVariableNameList ()
Map< String, VariableAccessorgetVariableTableCopy ()
int getVariableTableSize ()
int getVariableTableSizeWithObjectId ()
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 hasObjectID ()
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)
void inherit (RubyClass superClazz)
IRubyObject inherited (ThreadContext context, IRubyObject arg)
IRubyObject initialize (ThreadContext context, Block block)
IRubyObject initialize (ThreadContext context, IRubyObject superObject, Block block)
IRubyObject initialize ()
IRubyObject initialize (Block block)
IRubyObject initialize19 (ThreadContext context, Block block)
IRubyObject initialize19 (ThreadContext context, IRubyObject superObject, Block block)
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject instance_eval (ThreadContext context, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject[] args, 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 ()
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType, Block block)
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType, Block block)
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType, Block block)
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, CallType callType)
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType)
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType)
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType)
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType)
IRubyObject invoke (ThreadContext context, IRubyObject self, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, CallType callType, Block block)
IRubyObject invoke (ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject invokeInherited (ThreadContext context, IRubyObject self, IRubyObject subclass)
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)
final void marshal (Object obj, MarshalStream marshalStream) throws IOException
 MetaClass (Ruby runtime, RubyClass superClass, IRubyObject attached)
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[] args, Block block)
IRubyObject module_eval (ThreadContext context, Block block)
IRubyObject module_eval (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject module_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject module_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
RubyModule module_function (ThreadContext context, IRubyObject[] args)
IRubyObject name ()
IRubyObject name19 ()
boolean needsImplementer ()
IncludedModuleWrapper newIncludeClass (RubyClass superClazz)
IRubyObject newInstance (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject newMethod (IRubyObject receiver, String name, boolean bound)
IRubyObject nil_p (ThreadContext context)
boolean notVisibleAndNotMethodMissing (DynamicMethod method, String name, IRubyObject caller, CallType callType)
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)
synchronized void reify ()
synchronized void reify (String classDumpDir)
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)
synchronized void removeSubclass (RubyClass subclass)
synchronized void replaceSubclass (RubyClass subclass, RubyClass newSubclass)
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, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject send (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, Block block)
void setAllocator (ObjectAllocator allocator)
void setAttached (IRubyObject attached)
void setBaseName (String name)
void setClassAllocator (final Class cls)
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)
final void setMarshal (ObjectMarshal marshal)
void setMetaClass (RubyClass metaClass)
void setMethodVisibility (IRubyObject[] methods, Visibility visibility)
void setParent (RubyModule parent)
void setReifiedClass (Class newReifiedClass)
void setRubyClassAllocator (final Class cls)
void setRubyStaticAllocator (final Class cls)
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 arg, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject[] args, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject storeClassVariable (String name, IRubyObject value)
IRubyObject storeConstant (String name, IRubyObject value)
Collection< RubyClasssubclasses (boolean includeDescendants)
IRubyObject superclass (ThreadContext context)
IRubyObject superclass19 (ThreadContext context)
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 klass)
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)
final Object unmarshal (UnmarshalStream unmarshalStream) throws IOException
IRubyObject untaint (ThreadContext context)
IRubyObject untrust (ThreadContext context)
RubyBoolean untrusted_p (ThreadContext context)

Static Public Member Functions

static void checkInheritable (IRubyObject superClass)
static RubyClass createBasicObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createBootstrapClass (Ruby runtime, String name, RubyClass superClass, ObjectAllocator allocator)
static void createClassClass (Ruby runtime, RubyClass classClass)
static RubyClass createModuleClass (Ruby runtime, RubyClass moduleClass)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static void marshalTo (RubyClass clazz, MarshalStream output) throws java.io.IOException
static void marshalTo (RubyModule module, MarshalStream output) throws java.io.IOException
static RubyArray nesting (ThreadContext context, IRubyObject recv, Block block)
static RubyClass newClass (Ruby runtime, RubyClass superClass, CallSite[] extraCallSites)
static RubyClass newClass (Ruby runtime, RubyClass superClass)
static RubyClass newClass (Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent)
static RubyClass newClass (Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, CallSite[] extraCallSites)
static RubyModule newModule (Ruby runtime, String name, RubyModule parent, boolean setParent)
static RubyModule newModule (Ruby runtime)
static void puts (Object obj)
static RubyClass 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 ObjectAllocator CLASS_ALLOCATOR
static final int COMPARE_BY_IDENTITY_F = (1<<(FL_USHIFT+8))
static final int CS_IDX_INITIALIZE = 0
static final String[] CS_NAMES
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)
DynamicMethod searchMethodInner (String name)
void setModuleSuperClass (RubyClass superClass)
void setSuperClass (RubyClass superClass)
void taint (Ruby runtime)
final void testFrozen (String message)
final void testFrozen ()
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
ObjectMarshal marshal
transient RubyClass metaClass
final Ruby runtime
RubyClass superClass

Static Protected Attributes

static final ObjectMarshal DEFAULT_OBJECT_MARSHAL
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

 [instance initializer]
IRubyObject checkIntegerType (Ruby runtime, IRubyObject obj, String method)
final RubyBasicObject infectBy (int tuFlags)
final RubyBasicObject infectBy (RubyBasicObject obj)

Static Package Functions

static RubyString inspect (ThreadContext context, IRubyObject object)

Private Attributes

SoftReference< IRubyObjectattached = NULL_SOFT_REF

Static Private Attributes

static final SoftReference
< IRubyObject
NULL_SOFT_REF = new SoftReference<IRubyObject>(null)

Detailed Description

Definition at line 36 of file MetaClass.java.


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

Generated by  Doxygen 1.6.0   Back to index