public class IncludedModuleWrapper extends RubyClass
RubyModule
,
Serialized FormRubyModule.CacheEntryFactory, RubyModule.ConstantEntry, RubyModule.JavaClassKindOf, RubyModule.KindOf, RubyModule.MethodClumper, RubyModule.ModuleKernelMethods, RubyModule.ProfilingCacheEntryFactory, RubyModule.RespondToMissingMethod, RubyModule.SynchronizedCacheEntryFactory, RubyModule.WrapperCacheEntryFactory
RubyObject.Data
RubyBasicObject.Finalizer
CLASS_ALLOCATOR, CS_IDX_INITIALIZE, CS_NAMES, DEFAULT_OBJECT_MARSHAL, marshal, runtime
baseName, 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, superClass
FIELD_ALLOCATED_CLASSES, FIELD_ALLOCATORS, IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, OBJECT_VAR0_ALLOCATOR, OBJECT_VAR1_ALLOCATOR, OBJECT_VAR2_ALLOCATOR, OBJECT_VAR3_ALLOCATOR, OBJECT_VAR4_ALLOCATOR, OBJECT_VAR5_ALLOCATOR, OBJECT_VAR6_ALLOCATOR, OBJECT_VAR7_ALLOCATOR, OBJECT_VAR8_ALLOCATOR, OBJECT_VAR9_ALLOCATOR, REIFYING_OBJECT_ALLOCATOR
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, STAMP_OFFSET, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, VAR_TABLE_OFFSET, varTable, varTableStamp
NULL_ARRAY
Constructor and Description |
---|
IncludedModuleWrapper(Ruby runtime,
RubyClass superClass,
RubyModule delegate) |
Modifier and Type | Method and Description |
---|---|
void |
addMethod(String name,
DynamicMethod method) |
protected RubyModule.ConstantEntry |
constantEntryFetch(String name) |
protected boolean |
constantTableContains(String name) |
protected IRubyObject |
constantTableFetch(String name) |
protected IRubyObject |
constantTableRemove(String name) |
protected IRubyObject |
constantTableStore(String name,
IRubyObject value) |
IRubyObject |
getAutoloadConstant(String name)
Get autoload constant.
|
protected Map<String,IRubyObject> |
getClassVariables() |
protected Map<String,IRubyObject> |
getClassVariablesForRead() |
Collection<String> |
getConstantNames() |
Collection<String> |
getConstantNames(boolean includePrivate) |
Map<String,DynamicMethod> |
getMethods() |
Map<String,DynamicMethod> |
getMethodsForWrite() |
String |
getName()
Generate a fully-qualified class name or a #-style name for anonymous and singleton classes.
|
RubyModule |
getNonIncludedClass() |
List<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(Map newMethods) |
protected boolean |
variableTableContains(String name)
Checks if the variable table contains a variable of the
specified name.
|
protected Object |
variableTableFetch(String name)
Fetch an object from the variable table based on the name.
|
protected Object |
variableTableRemove(String name)
Removes the entry with the specified name from the variable
table, and returning the removed value.
|
protected Object |
variableTableStore(String name,
Object value)
Store a value in the variable store under the specific name.
|
protected void |
variableTableSync(List<Variable<Object>> vars)
Synchronize the variable table with the argument.
|
addClassAnnotation, addFieldAnnotation, addFieldSignature, 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, getFFIHandleAccessorForRead, getFFIHandleAccessorForWrite, getFieldAnnotations, getFieldSignatures, getMarshal, getMethodAnnotations, getMethodSignatures, getNativeHandleAccessorField, getNativeHandleAccessorForWrite, getNativeTypeIndex, getObjectGroupAccessorField, getObjectGroupAccessorForRead, getObjectGroupAccessorForWrite, getObjectIdAccessorField, getParameterAnnotations, getRealClass, getReifiedClass, getVariableAccessorForRead, getVariableAccessorForWrite, getVariableAccessorsForRead, getVariableNames, getVariableTableCopy, getVariableTableManager, 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, unmarshalFrom
addClassProvider, 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, checkValidBindTargetFrom, 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, discoverInstanceVariables, 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, validateConstant, visitInterpretedMethods
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, eqlInternal, equalInternal, initialize, initialize, inspect, puts, specificEval, toString
addFinalizer, 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, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, id_deprecated, infectBy, initialize19, 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, yieldUnder
public IncludedModuleWrapper(Ruby runtime, RubyClass superClass, RubyModule delegate)
@Deprecated public IncludedModuleWrapper newIncludeClass(RubyClass superClass)
newIncludeClass
in class RubyModule
RubyModule.newIncludeClass(RubyClass)
public boolean isModule()
RubyBasicObject
isModule
in interface IRubyObject
isModule
in class RubyClass
(someObject instanceof RubyModule)
instead.public boolean isClass()
RubyBasicObject
isClass
in interface IRubyObject
isClass
in class RubyClass
(someObject instanceof RubyClass/MetaClass)
instead.public boolean isIncluded()
RubyModule
isIncluded
in class RubyModule
public boolean isImmediate()
RubyBasicObject
isImmediate
in interface IRubyObject
isImmediate
in class RubyBasicObject
public void setMetaClass(RubyClass newRubyClass)
RubyBasicObject
setMetaClass
in class RubyBasicObject
public Map<String,DynamicMethod> getMethods()
getMethods
in class RubyModule
public Map<String,DynamicMethod> getMethodsForWrite()
getMethodsForWrite
in class RubyModule
public void addMethod(String name, DynamicMethod method)
addMethod
in class RubyModule
public void setMethods(Map newMethods)
public String getName()
RubyModule
getName
in class RubyModule
public RubyModule getNonIncludedClass()
getNonIncludedClass
in class RubyModule
protected boolean isSame(RubyModule module)
isSame
in class RubyModule
public IRubyObject id()
id
in interface IRubyObject
id
in class RubyBasicObject
protected Map<String,IRubyObject> getClassVariables()
getClassVariables
in class RubyModule
protected Map<String,IRubyObject> getClassVariablesForRead()
getClassVariablesForRead
in class RubyModule
protected boolean variableTableContains(String name)
RubyBasicObject
variableTableContains
in class RubyBasicObject
protected Object variableTableFetch(String name)
RubyBasicObject
variableTableFetch
in class RubyBasicObject
protected Object variableTableStore(String name, Object value)
RubyBasicObject
variableTableStore
in class RubyBasicObject
protected Object variableTableRemove(String name)
RubyBasicObject
variableTableRemove
in class RubyBasicObject
protected void variableTableSync(List<Variable<Object>> vars)
RubyBasicObject
variableTableSync
in class RubyBasicObject
protected boolean constantTableContains(String name)
constantTableContains
in class RubyModule
protected IRubyObject constantTableFetch(String name)
constantTableFetch
in class RubyModule
protected RubyModule.ConstantEntry constantEntryFetch(String name)
constantEntryFetch
in class RubyModule
protected IRubyObject constantTableStore(String name, IRubyObject value)
constantTableStore
in class RubyModule
protected IRubyObject constantTableRemove(String name)
constantTableRemove
in class RubyModule
@Deprecated public List<String> getStoredConstantNameList()
getStoredConstantNameList
in class RubyModule
public Collection<String> getConstantNames()
getConstantNames
in class RubyModule
public Collection<String> getConstantNames(boolean includePrivate)
getConstantNames
in class RubyModule
public IRubyObject getAutoloadConstant(String name)
RubyModule
getAutoloadConstant
in class RubyModule
Copyright © 2001-2013 JRuby. All Rights Reserved.