public class IncludedModuleWrapper extends RubyClass
RubyModule,
Serialized FormRubyClass.VariableAccessor, RubyClass.VariableAccessorFieldRubyModule.CacheEntryFactory, RubyModule.ConstantEntry, 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, runtimebaseName, cachedMethods, ERR_FROZEN_CONST_TYPE, ERR_FROZEN_CVAR_TYPE, ERR_INSECURE_SET_CLASS_VAR, ERR_INSECURE_SET_CONSTANT, generation, generationObject, id, includingHierarchies, index, kindOf, methodInvalidator, 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 RubyModule.ConstantEntry |
constantEntryFetch(java.lang.String name) |
protected boolean |
constantTableContains(java.lang.String name) |
protected IRubyObject |
constantTableFetch(java.lang.String name) |
protected IRubyObject |
constantTableRemove(java.lang.String name) |
protected IRubyObject |
constantTableStore(java.lang.String name,
IRubyObject value) |
IRubyObject |
getAutoloadConstant(java.lang.String name)
Get autoload constant.
|
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.Collection<java.lang.String> |
getConstantNames(boolean includePrivate) |
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() |
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 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, addInvalidatorsAndFlush, addMethodAnnotation, addMethodSignature, addParameterAnnotation, addSubclass, allocate, becomeSynchronized, checkInheritable, createBootstrapClass, createClassClass, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvoke, finvokeChecked, getAllocator, getBaseCallSite, getBaseCallSites, getClassAnnotations, getClassRuntime, getExtraCallSites, getFFIHandleAccessorField, getMarshal, getMethodAnnotations, getMethodSignatures, getNativeHandleAccessorField, getNativeTypeIndex, getObjectGroupAccessorField, getObjectIdAccessorField, getParameterAnnotations, getRealClass, getReifiedClass, getVariableAccessorForRead, getVariableAccessorForWrite, getVariableAccessorsForRead, getVariableNames, getVariableTableCopy, getVariableTableSize, getVariableTableSizeWithExtras, 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, reify, reify, reifyWithAncestors, reifyWithAncestors, 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_get19, class_variable_set, class_variable_set19, class_variables, class_variables19, cloneMethods, const_defined_p, const_defined_p19, const_get_1_9, const_get_2_0, const_get, const_missing, const_set, constants, constants19, constants19, constantsCommon, constantsCommon, constantsCommon19, createModuleClass, define_method, define_method, define_method, defineAlias, defineAliases, defineAnnotatedConstant, defineAnnotatedConstants, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethods, defineAnnotatedMethodsIndividually, defineAutoload, 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, fetchConstant, findImplementer, finishAutoload, freeze, getAncestorList, getAutoloadFile, getBaseName, getCacheProxy, getCacheToken, getClass, getClassVar, getClassVariableNameList, getConstant, getConstant, getConstant, getConstantAt, getConstantAt, getConstantAtSpecial, getConstantFrom, getConstantFromConstMissing, getConstantFromNoConstMissing, getConstantFromNoConstMissing, getConstantMap, getConstantMapForWrite, getConstantNoConstMissing, getConstantNoConstMissing, getConstantNoConstMissing, getGeneration, getGenerationObject, getInvalidator, getJavaProxy, getParent, getSimpleName, 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, mix, mix, 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_constant, private_constant, private_instance_methods, private_instance_methods19, private_method_defined, protected_instance_methods, protected_instance_methods19, protected_method_defined, public_class_method, public_constant, public_constant, public_instance_methods, public_instance_methods19, public_method_defined, rbPrivate, rbProtected, rbPublic, remove_class_variable, remove_class_variable19, remove_const, remove_method, removeClassProvider, removeClassVariable, removeCvar, removeMethod, resolveUndefConstant, retrieveMethod, searchInternalModuleVariable, searchMethod, searchMethodInner, searchWithCache, setBaseName, setCacheProxy, setClassVar, setConstant, setConstantQuiet, setInternalModuleVariable, setJavaProxy, setMethodVisibility, setParent, setSuperClass, storeClassVariable, storeConstant, syncClassVariables, syncConstants, to_s, undef_method, undef, undefineMethod, updateGeneration, validateClassVariable, validateConstantattachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, eqlInternal, equalInternal, initialize, initialize, inspect, 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, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getJavaClass, getMetaClass, getNativeHandle, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, getVariableTableForRead, getVariableTableForWrite, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, id_deprecated, infectBy, 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, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setNativeHandle, 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, variableTableFastContains, variableTableFastFetch, variableTableFastStore, 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 RubyModuleprotected 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 java.lang.Object variableTableFetch(java.lang.String name)
RubyBasicObjectvariableTableFetch in class RubyBasicObjectprotected java.lang.Object variableTableStore(java.lang.String name,
java.lang.Object value)
RubyBasicObjectvariableTableStore 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 IRubyObject constantTableFetch(java.lang.String name)
constantTableFetch in class RubyModuleprotected RubyModule.ConstantEntry constantEntryFetch(java.lang.String name)
constantEntryFetch in class RubyModuleprotected IRubyObject constantTableStore(java.lang.String name, IRubyObject value)
constantTableStore 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 RubyModulepublic java.util.Collection<java.lang.String> getConstantNames(boolean includePrivate)
getConstantNames in class RubyModulepublic IRubyObject getAutoloadConstant(java.lang.String name)
RubyModulegetAutoloadConstant in class RubyModuleCopyright © 2002-2009 JRuby Team. All Rights Reserved.