public final class IncludedModuleWrapper extends RubyClass
RubyModule,
Serialized FormRubyClass.VariableAccessorRubyModule.CacheEntryFactory, RubyModule.KindOf, RubyModule.MethodClumper, RubyModule.ModuleKernelMethods, RubyModule.ProfilingCacheEntryFactory, RubyModule.RespondToMissingMethod, RubyModule.SynchronizedCacheEntryFactory, RubyModule.WrapperCacheEntryFactoryRubyObject.DataRubyBasicObject.FinalizerCLASS_ALLOCATOR, CS_IDX_INITIALIZE, CS_NAMES, DEFAULT_OBJECT_MARSHAL, marshal, runtimeclassId, ERR_FROZEN_CONST_TYPE, ERR_FROZEN_CVAR_TYPE, ERR_INSECURE_SET_CLASS_VAR, ERR_INSECURE_SET_CONSTANT, generation, id, includingHierarchies, index, kindOf, MODULE_ALLOCATOR, NormalCacheEntryFactory, parent, SCOPE_CAPTURING_METHODS, superClassOBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATORALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_FNULL_ARRAY| Constructor and Description |
|---|
IncludedModuleWrapper(Ruby runtime,
RubyClass superClass,
RubyModule delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMethod(java.lang.String name,
DynamicMethod method) |
protected boolean |
constantTableContains(java.lang.String name) |
protected boolean |
constantTableFastContains(java.lang.String internedName) |
protected IRubyObject |
constantTableFastFetch(java.lang.String internedName) |
protected IRubyObject |
constantTableFastStore(java.lang.String internedName,
IRubyObject value) |
protected IRubyObject |
constantTableFetch(java.lang.String name) |
protected IRubyObject |
constantTableRemove(java.lang.String name) |
protected IRubyObject |
constantTableStore(java.lang.String name,
IRubyObject value) |
protected java.util.Map<java.lang.String,IRubyObject> |
getClassVariables() |
protected java.util.Map<java.lang.String,IRubyObject> |
getClassVariablesForRead() |
java.util.Collection<java.lang.String> |
getConstantNames() |
java.util.Map<java.lang.String,DynamicMethod> |
getMethods() |
java.util.Map<java.lang.String,DynamicMethod> |
getMethodsForWrite() |
java.lang.String |
getName()
Generate a fully-qualified class name or a #-style name for anonymous and singleton classes.
|
RubyModule |
getNonIncludedClass() |
RubyClass |
getRealClass() |
java.util.List<java.lang.String> |
getStoredConstantNameList()
Deprecated.
|
IRubyObject |
id()
We don't want to reveal ourselves to Ruby code, so delegate this
operation.
|
boolean |
isClass()
Specifically polymorphic method that are meant to be overridden
by classes to specify that they are classes in an easy way.
|
boolean |
isImmediate()
Is object immediate (def: Fixnum, Symbol, true, false, nil?).
|
boolean |
isIncluded()
Is this module one that in an included one (e.g.
|
boolean |
isModule()
Specifically polymorphic method that are meant to be overridden
by modules to specify that they are modules in an easy way.
|
protected boolean |
isSame(RubyModule module) |
IncludedModuleWrapper |
newIncludeClass(RubyClass superClass)
Deprecated.
|
void |
setMetaClass(RubyClass newRubyClass)
Makes it possible to change the metaclass of an object.
|
void |
setMethods(java.util.Map newMethods) |
protected boolean |
variableTableContains(java.lang.String name)
Checks if the variable table contains a variable of the
specified name.
|
protected boolean |
variableTableFastContains(java.lang.String internedName)
Checks if the variable table contains the the variable of the
specified name, where the precondition is that the name must be
an interned Java String.
|
protected java.lang.Object |
variableTableFastFetch(java.lang.String internedName)
Fetch an object from the variable table based on the name,
where the name must be an interned Java String.
|
protected java.lang.Object |
variableTableFastStore(java.lang.String internedName,
java.lang.Object value)
Will store the value under the specified name, where the name
needs to be an interned Java String.
|
protected java.lang.Object |
variableTableFetch(java.lang.String name)
Fetch an object from the variable table based on the name.
|
protected java.lang.Object |
variableTableRemove(java.lang.String name)
Removes the entry with the specified name from the variable
table, and returning the removed value.
|
protected java.lang.Object |
variableTableStore(java.lang.String name,
java.lang.Object value)
Store a value in the variable store under the specific name.
|
protected void |
variableTableSync(java.util.List<Variable<java.lang.Object>> vars)
Synchronize the variable table with the argument.
|
addClassAnnotation, addMethodAnnotation, addMethodSignature, addParameterAnnotation, addSubclass, allocate, becomeSynchronized, checkInheritable, createBootstrapClass, createClassClass, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvokeChecked, getAllocator, getBaseCallSites, getClassAnnotations, getClassRuntime, getExtraCallSites, getMarshal, getMethodAnnotations, getMethodSignatures, getNativeTypeIndex, getObjectIdAccessorForRead, getObjectIdAccessorForWrite, getParameterAnnotations, getReifiedClass, getVariableAccessorForRead, getVariableAccessorForWrite, getVariableAccessorsForRead, getVariableNames, getVariableTableCopy, getVariableTableSize, getVariableTableSizeWithObjectId, hasObjectID, inherit, inherited, initialize_copy, initialize, initialize, initialize19, initialize19, invalidateCacheDescendants, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invokeInherited, isReifiable, isSingleton, makeMetaClass, marshal, marshalTo, newClass, newClass, newClass, newClass, newInstance, newInstance, newInstance, newInstance, newInstance, notVisibleAndNotMethodMissing, reify, reify, reifyWithAncestors, reifyWithAncestors, removeSubclass, replaceSubclass, setAllocator, setClassAllocator, setMarshal, setModuleSuperClass, setReifiedClass, setRubyClassAllocator, setRubyStaticAllocator, smartDump, smartLoadNewUser, smartLoadOldUser, subclasses, superclass, toJava, unmarshal, unmarshalFromaddClassProvider, addIncludingHierarchy, addMethodAtBootTimeOnly, addMethodInternal, addModuleFunction, addReadAttribute, addReadWriteAttribute, addWriteAttribute, alias_method, ancestors, ancestors, append_features, attr_accessor, attr_accessor, attr_reader, attr_reader, attr_writer, attr, attr19, checkMethodBound, class_variable_defined_p, class_variable_get, class_variable_set, class_variables, class_variables19, cloneMethods, const_defined_p, const_defined_p19, const_get, const_get, const_missing, const_set, constants, constants19, constants19, constantsCommon, constantsCommon19, createModuleClass, define_method, define_method, define_method, defineAlias, defineAliases, defineAnnotatedConstant, defineAnnotatedConstants, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethods, defineAnnotatedMethodsIndividually, defineClassUnder, defineConstant, defineFastMethod, defineFastMethod, defineFastModuleFunction, defineFastPrivateMethod, defineFastProtectedMethod, defineFastPublicModuleFunction, defineMethod, defineModuleFunction, defineModuleUnder, defineOrGetClassUnder, defineOrGetModuleUnder, definePrivateMethod, definePublicModuleFunction, deleteClassVariable, deleteConstant, ensureClassVariablesSettable, ensureConstantsSettable, equals, executeUnder, exportMethod, extend_object, extended, fastFetchClassVariable, fastFetchConstant, fastGetClass, fastGetClassVar, fastGetConstant, fastGetConstant, fastGetConstantAt, fastGetConstantFrom, fastGetConstantFromConstMissing, fastGetConstantFromNoConstMissing, fastHasClassVariable, fastHasConstant, fastIsClassVarDefined, fastIsConstantDefined, fastIsConstantDefined19, fastIsConstantDefined19, fastSetClassVar, fastSetConstant, fastStoreClassVariable, fastStoreConstant, fetchClassVariable, fetchConstant, findImplementer, freeze, getAncestorList, getBaseName, getCacheToken, getClass, getClassVar, getClassVariableNameList, getConstant, getConstant, getConstantAt, getConstantAtSpecial, getConstantFrom, getConstantInner, getConstantMap, getConstantMapForWrite, getConstantNoConstMissing, getConstantNoConstMissing, getParent, getStoredConstantList, getSuperClass, hasClassVariable, hasConstant, hash, hashCode, hasInternalModuleVariable, hasModuleInHierarchy, include_p, include, included_modules, included, includeModule, initialize, instance_method, instance_methods, instance_methods19, invalidateCacheDescendantsInner, invalidateConstantCache, invalidateCoreClasses, isClassVarDefined, isConstantDefined, isInstance, isKindOfModule, isMethodBound, isMethodBound, isSynchronized, marshalTo, method_added, method_defined_p, method_removed, method_undefined, module_eval, module_eval, module_eval, module_eval, module_eval, module_exec, module_exec, module_function, name, name19, needsImplementer, nesting, newMethod, newMethod, newMethod, newModule, newModule, op_cmp, op_eqq, op_equal, op_ge, op_gt, op_le, op_lt, populateInstanceMethodNames, private_class_method, private_instance_methods, private_instance_methods19, private_method_defined, protected_instance_methods, protected_instance_methods19, protected_method_defined, public_class_method, public_instance_methods, public_instance_methods19, public_method_defined, rbPrivate, rbProtected, rbPublic, remove_class_variable, remove_const, remove_method, removeClassProvider, removeClassVariable, removeCvar, removeMethod, resolveUndefConstant, retrieveMethod, searchInternalModuleVariable, searchMethod, searchMethodInner, searchWithCache, setBaseName, setClassVar, setConstant, setConstantQuiet, setInternalModuleVariable, setMethodVisibility, setParent, setSuperClass, storeClassVariable, storeConstant, syncClassVariables, syncConstants, to_s, undef_method, undef, undefineMethod, validateClassVariable, validateConstantattachToObjectSpace, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, eqlInternal, equalInternal, initialize, puts, specificEval, toStringaddFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkFrozen, checkStringType, checkStringType19, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, display, dup, ensureInstanceVariablesSettable, eql_p, eql, equal_p, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, frozen_p, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getJavaClass, getMetaClass, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, id_deprecated, infectBy, initialize19, initialize19, initialize19, initialize19, initialize19, initObjectId, inspect, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval19, instance_eval19, instance_eval19, instance_eval19, instance_exec, instance_exec19, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, instance_variables19, isBuiltin, isFalse, isFrozen, isNil, isTaint, isTrue, isUntrusted, kind_of_p, method_missing19, method, method19, methods, methods, methods19, nil_p, op_cmp, op_equal_19, op_match, op_match19, op_not_equal, op_not_match, op_not, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respond_to_p19, respond_to_p19, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, send19, send19, send19, send19, send19, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setTaint, setUntrusted, setVariable, singleton_method_added19, singleton_method_removed19, singleton_method_undefined19, singleton_methods, singleton_methods19, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_a, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable, yieldUnder, yieldUnderpublic IncludedModuleWrapper(Ruby runtime, RubyClass superClass, RubyModule delegate)
@Deprecated public IncludedModuleWrapper newIncludeClass(RubyClass superClass)
newIncludeClass in class RubyModuleRubyModule.newIncludeClass(RubyClass)public boolean isModule()
RubyBasicObjectisModule in interface IRubyObjectisModule in class RubyClass(someObject instanceof RubyModule) instead.public boolean isClass()
RubyBasicObjectisClass in interface IRubyObjectisClass in class RubyClass(someObject instanceof RubyClass/MetaClass) instead.public boolean isIncluded()
RubyModuleisIncluded in class RubyModulepublic boolean isImmediate()
RubyBasicObjectisImmediate in interface IRubyObjectisImmediate in class RubyBasicObjectpublic void setMetaClass(RubyClass newRubyClass)
RubyBasicObjectsetMetaClass in class RubyBasicObjectpublic java.util.Map<java.lang.String,DynamicMethod> getMethods()
getMethods in class RubyModulepublic java.util.Map<java.lang.String,DynamicMethod> getMethodsForWrite()
getMethodsForWrite in class RubyModulepublic void addMethod(java.lang.String name,
DynamicMethod method)
addMethod in class RubyModulepublic void setMethods(java.util.Map newMethods)
public java.lang.String getName()
RubyModulegetName in class RubyModulepublic RubyModule getNonIncludedClass()
getNonIncludedClass in class RubyModulepublic RubyClass getRealClass()
getRealClass in class RubyClassprotected boolean isSame(RubyModule module)
isSame in class RubyModulepublic IRubyObject id()
id in interface IRubyObjectid in class RubyBasicObjectprotected java.util.Map<java.lang.String,IRubyObject> getClassVariables()
getClassVariables in class RubyModuleprotected java.util.Map<java.lang.String,IRubyObject> getClassVariablesForRead()
getClassVariablesForRead in class RubyModuleprotected boolean variableTableContains(java.lang.String name)
RubyBasicObjectvariableTableContains in class RubyBasicObjectprotected boolean variableTableFastContains(java.lang.String internedName)
RubyBasicObjectvariableTableFastContains in class RubyBasicObjectprotected java.lang.Object variableTableFetch(java.lang.String name)
RubyBasicObjectvariableTableFetch in class RubyBasicObjectprotected java.lang.Object variableTableFastFetch(java.lang.String internedName)
RubyBasicObjectvariableTableFastFetch in class RubyBasicObjectprotected java.lang.Object variableTableStore(java.lang.String name,
java.lang.Object value)
RubyBasicObjectvariableTableStore in class RubyBasicObjectprotected java.lang.Object variableTableFastStore(java.lang.String internedName,
java.lang.Object value)
RubyBasicObjectvariableTableFastStore in class RubyBasicObjectprotected java.lang.Object variableTableRemove(java.lang.String name)
RubyBasicObjectvariableTableRemove in class RubyBasicObjectprotected void variableTableSync(java.util.List<Variable<java.lang.Object>> vars)
RubyBasicObjectvariableTableSync in class RubyBasicObjectprotected boolean constantTableContains(java.lang.String name)
constantTableContains in class RubyModuleprotected boolean constantTableFastContains(java.lang.String internedName)
constantTableFastContains in class RubyModuleprotected IRubyObject constantTableFetch(java.lang.String name)
constantTableFetch in class RubyModuleprotected IRubyObject constantTableFastFetch(java.lang.String internedName)
constantTableFastFetch in class RubyModuleprotected IRubyObject constantTableStore(java.lang.String name, IRubyObject value)
constantTableStore in class RubyModuleprotected IRubyObject constantTableFastStore(java.lang.String internedName, IRubyObject value)
constantTableFastStore in class RubyModuleprotected IRubyObject constantTableRemove(java.lang.String name)
constantTableRemove in class RubyModule@Deprecated public java.util.List<java.lang.String> getStoredConstantNameList()
getStoredConstantNameList in class RubyModulepublic java.util.Collection<java.lang.String> getConstantNames()
getConstantNames in class RubyModuleCopyright © 2002-2009 JRuby Team. All Rights Reserved.