Package org.jruby
Class RubyClass
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyModule
org.jruby.RubyClass
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IRubyObject>,InstanceVariables,InternalVariables,IRubyObject,CoreObjectType
- Direct Known Subclasses:
IncludedModule,MetaClass,PrependedModule
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic enumNested classes/interfaces inherited from class org.jruby.RubyModule
RubyModule.Autoload, RubyModule.AutoloadMethod, RubyModule.CacheEntryFactory, RubyModule.ConstantEntry, RubyModule.InvalidatorList<T>, RubyModule.JavaClassKindOf, RubyModule.KindOf, RubyModule.MethodClumper, RubyModule.ModuleKernelMethods, RubyModule.ProfilingCacheEntryFactory, RubyModule.RefinementMethods, RubyModule.RespondToMissingMethod, RubyModule.SourceLocation, RubyModule.SynchronizedCacheEntryFactory, RubyModule.WrapperCacheEntryFactoryNested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.DataNested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.Finalizer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectAllocatorstatic final intprotected static final ObjectMarshalprotected ObjectMarshalprotected final RubyFields inherited from class org.jruby.RubyModule
baseName, BUILTIN_CONSTANT, cachedMethods, CACHEPROXY_F, classIndex, generation, generationObject, id, INCLUDED_INTO_REFINEMENT, includingHierarchies, index, IS_OVERLAID_F, kindOf, methodInvalidator, methodLocation, methods, MODULE_ALLOCATOR, NEEDSIMPL_F, NormalCacheEntryFactory, OMOD_SHARED, parent, REFINED_MODULE_F, SCOPE_CAPTURING_METHODS, superClass, TEMPORARY_NAMEFields inherited from class org.jruby.RubyObject
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATORFields inherited from class org.jruby.RubyBasicObject
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, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, USER9_F, USERA_F, VAR_TABLE_OFFSET, varTable, varTableStampFields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedused by CLASS_ALLOCATOR (any Class' class will be a Class!) also used to bootstrap Object classprotectedrb_class_boot (for plain Classes) also used to bootstrap Module and Class classesprotectedseparate path for MetaClass and IncludedModuleWrapper construction (rb_class_boot version for MetaClasses) no marshal, allocator initialization and addSubclass(this) here!protectedThis is an internal API only used by Ruby constructor before ThreadContext exists.protectedA constructor which allows passing in an array of supplementary call sites. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassAnnotation(Class<?> annotation, Map fields) voidaddFieldAnnotation(String fieldName, Class<?> annotation, Map fields) voidaddFieldSignature(String fieldName, Class<?> type) voidaddMethodAnnotation(String methodName, Class<?> annotation, Map fields) voidaddMethodSignature(String methodName, Class<?>[] types) voidvoidaddSubclass(RubyClass subclass) Add a new subclass to the weak set of subclasses.allocate()Deprecated.allocate(ThreadContext context) <T extends RubyClass>
Tallocator(ObjectAllocator allocator) Define an allocator for this class (usually this is part ofDefine.defineClass(ThreadContext, String, RubyClass, ObjectAllocator)).attached_object(ThreadContext context) voidmake this class and all subclasses syncstatic voidcheckInheritable(IRubyObject superClass) Deprecated.static voidcheckInheritable(ThreadContext context, IRubyObject superClass) booleanstatic RubyClasscreateBootstrapClass(Ruby runtime, String name, RubyClass superClass, ObjectAllocator allocator) boot_defclass Create an initial Object meta class before Module and Kernel dependencies have squirreled themselves together.static voidfinishClassClass(Ruby runtime, RubyClass Class) static voidfinishCreateClassClass(ThreadContext context, RubyClass Class) finvoke(ThreadContext context, IRubyObject self, String name) finvoke(ThreadContext context, IRubyObject self, String name, Block block) finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg) finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args) finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, Block block) finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, Block block) finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1) finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block) finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) final IRubyObjectfinvokeChecked(ThreadContext context, IRubyObject self, String name) Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate.final IRubyObjectfinvokeChecked(ThreadContext context, IRubyObject self, String name, IRubyObject... args) Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate.final IRubyObjectfinvokeChecked(ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites) Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate.final IRubyObjectfinvokeChecked(ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites, IRubyObject... args) Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate.finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, Block block) finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject[] args, Block block) finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject arg, Block block) finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject arg0, IRubyObject arg1, Block block) finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) getBaseCallSite(int idx) CallSite[]final RubyCallSite[]Deprecated.If the current class is reified (null otherwise) and if it extends javafinal ObjectMarshalThis is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.Deprecated.Deprecated.getPositionOrDefault(DynamicMethod method) final RubyClassGet the "real" class, either the current one or the nearest ancestor that is not a singleton or include wrapper.Equivalent togetRealClass().Deprecated.Class<? extends ReifiedJavaProxy> Gets a reified Java class.Class<? extends IRubyObject> Gets a reified Ruby class.org.jruby.RubyClass.RubyClassSetString[]Get an array of all the known instance variable names.intintbooleanvoidDeprecated.inherited(ThreadContext context, IRubyObject arg) initialize(ThreadContext context, Block block) rb_class_initializeinitialize(ThreadContext context, IRubyObject superObject, Block block) initialize_copy(ThreadContext context, IRubyObject original) rb_class_init_copyvoidinvalidateCacheDescendants(ThreadContext context) Invalidate all subclasses of this class by walking the set of all subclasses and asking them to invalidate themselves.invoke(ThreadContext context, IRubyObject self, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block) Deprecated.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invoke(ThreadContext context, IRubyObject self, String name, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invoke(ThreadContext context, IRubyObject self, String name, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name) Deprecated.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, Block block) Deprecated.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg) Deprecated.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject[] args) Deprecated.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject[] args, Block block) Deprecated.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg, Block block) Deprecated.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1) Deprecated.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block) Deprecated.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) Deprecated.invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) Deprecated.invokeInherited(ThreadContext context, IRubyObject self, IRubyObject subclass) invokePublic(ThreadContext context, IRubyObject self, String name, IRubyObject arg) MRI: rb_funcallv_publicbooleanisClass()Specifically polymorphic method that are meant to be overridden by classes to specify that they are classes in an easy way.booleanisModule()Specifically polymorphic method that are meant to be overridden by modules to specify that they are modules in an easy way.booleanisReifiable(boolean[] java) Whether this class can be reified into a Java class.booleanfinal voidmarshal(Object obj, MarshalStream marshalStream) Deprecated, for removal: This API element is subject to removal in a future version.final voidmarshal(ThreadContext context, RubyOutputStream out, Object obj, MarshalDumper marshalStream) static voidmarshalTo(RubyClass clazz, MarshalStream output) Deprecated, for removal: This API element is subject to removal in a future version.static voidmarshalTo(ThreadContext context, RubyOutputStream out, RubyClass clazz, MarshalDumper output) <T extends RubyClass>
TmarshalWith(ObjectMarshal marshal) Set what marshaller we use or generally use this to specify the typw cannot Marshal data.static Class<?> nearestReifiedClass(RubyClass klass) static RubyClassDeprecated.static RubyClassnewClass(Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent) Deprecated.static RubyClassnewClass(Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, String file, int line) Deprecated.static RubyClassnewClass(Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, CallSite[] extraCallSites) Deprecated.static RubyClassDeprecated.static RubyClassnewClass(ThreadContext context, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, String file, int line) static RubyClassnewClass(ThreadContext context, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, CallSite[] extraCallSites) A variation on newClass that allows passing in an array of supplementary call sites to improve dynamic invocation performance.static RubyClassnewClass(ThreadContext context, RubyClass superClass, CallSite[] extraCallSites) A variation on newClass that allow passing in an array of supplementary call sites to improve dynamic invocation.static RubyClassnewClassBootstrap(Ruby runtime, RubyClass Object, RubyClass Class, String name) This is an internal API for bootstrapping a few classes before ThreadContext is available.newInstance(ThreadContext context, Block block) rb_class_new_instancenewInstance(ThreadContext context, IRubyObject arg0) newInstance(ThreadContext context, IRubyObject[] args, Block block) newInstance(ThreadContext context, IRubyObject arg0, Block block) newInstance(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block) newInstance(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) Gets a reified Ruby or Java class.<T extends RubyClass>
TreifiedClass(Class<? extends IRubyObject> reifiedClass) Sets reified class to use.final voidreify()final voidreify(boolean useChildLoader) final voidvoidStand up a real Java class for the backing store of this objectvoidvoidreifyWithAncestors(boolean useChildLoader) voidreifyWithAncestors(String classDumpDir) voidreifyWithAncestors(String classDumpDir, boolean useChildLoader) Reify this class, first reifying all its ancestors.voidremoveSubclass(RubyClass subclass) Remove a subclass from the weak set of subclasses.voidreplaceSubclass(RubyClass subclass, RubyClass newSubclass) Replace an existing subclass with a new one.voidsetAllocator(ObjectAllocator allocator) Deprecated.Useallocator(ObjectAllocator)instead.voidsetClassAllocator(Class<?> clazz) Set a reflective allocator that calls a no-arg constructor on the given class.voidfinal voidsetMarshal(ObjectMarshal marshal) Deprecated.UsemarshalWith(ObjectMarshal)instead.voidsetReifiedClass(Class<? extends IRubyObject> reifiedClass) Deprecated.UsereifiedClass(Class)instead.voidsetRubyClassAllocator(Class<? extends IRubyObject> clazz) Set a reflective allocator that calls the "standard" Ruby object constructor (Ruby, RubyClass) on the given class.voidsetRubyStaticAllocator(Class<?> clazz) Set a reflective allocator that calls the "standard" Ruby object constructor (Ruby, RubyClass) on the given class via a static __allocate__ method intermediate.voidsmartDump(MarshalStream stream, IRubyObject target) Deprecated, for removal: This API element is subject to removal in a future version.voidsmartDump(ThreadContext context, RubyOutputStream out, MarshalDumper stream, IRubyObject target) smartLoadNewUser(IRubyObject target, IRubyObject data) Load marshaled data into a blank target object using marshal_load, being "smart" and caching the mechanism for invoking marshal_load.smartLoadOldUser(IRubyObject data) Load marshaled data into a blank target object using _load, being "smart" and caching the mechanism for invoking _load.final Collection<RubyClass> subclasses(boolean includeDescendants) subclasses(ThreadContext context) superclass(ThreadContext context) Return the real super class of this class.<T> TConvert the object to the specified Java class, if possible.final Objectunmarshal(UnmarshalStream unmarshalStream) Deprecated, for removal: This API element is subject to removal in a future version.final Objectunmarshal(ThreadContext context, RubyInputStream in, MarshalLoader loader) static RubyClassunmarshalFrom(UnmarshalStream input) Deprecated, for removal: This API element is subject to removal in a future version.static RubyClassunmarshalFrom(ThreadContext context, RubyInputStream in, MarshalLoader input) Methods inherited from class org.jruby.RubyModule
_module_function, _private, _protected, _public, addClassProvider, addIncludingHierarchy, addMethod, addMethod, addMethodInternal, addMethodInternal, addMethodSymbols, addMethodSymbols, addModuleFunction, addReadAttribute, addReadWriteAttribute, addToCache, addToCache, addWriteAttribute, alias_method, aliasMethod, ancestors, ancestors, append_features, append_features, attr, attr_accessor, attr_accessor, attr_reader, attr_reader, attr_writer, autoload, autoload_p, autoload_p, autoloadingValue, autoloadingValue, baseName, checkForCyclicPrepend, checkFrozen, checkValidBindTargetFrom, class_variable_defined_p, class_variable_get, class_variable_get, class_variable_get19, class_variable_set, class_variable_set, class_variable_set19, class_variables, class_variables, classIndex, cloneMethods, cloneMethods, const_added, const_defined_p, const_defined_p, const_get, const_get, const_get, const_get, const_get_1_9, const_get_2_0, const_missing, const_set, const_set, const_source_location, constantEntryFetch, constants, constants, constantsCommon, constantsCommon, constantTableContains, constantTableFetch, constantTableRemove, constantTableStore, constantTableStore, constantTableStore, constantTableStore, constDefined, constDefined, constDefinedAt, constDefinedAt, constDefinedFrom, constDefinedFrom, define_method, define_method, define_method, defineAlias, defineAlias, defineAliases, defineAnnotatedConstant, defineAnnotatedConstants, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethod, defineAnnotatedMethods, defineAnnotatedMethodsIndividually, defineAutoload, defineAutoload, defineClassUnder, defineClassUnder, defineClassUnder, defineConstant, defineConstant, defineConstant, defineConstantBootstrap, defineConstants, defineConstantsFrom, defineMethodFromBlock, defineMethodFromCallable, defineMethods, defineModuleUnder, defineModuleUnder, defineOrGetClassUnder, defineOrGetClassUnder, defineOrGetClassUnder, defineOrGetClassUnder, defineOrGetModuleUnder, defineOrGetModuleUnder, defineOrGetModuleUnder, deleteClassVariable, deleteConstant, deleteConstant, deprecate_constant, deprecate_constant, deprecateConstant, deprecateConstant, discoverInstanceVariables, ensureClassVariablesSettable, ensureConstantsSettable, equals, exportMethod, extend_object, extend_object, extended, fastFetchClassVariable, fastFetchConstant, fastGetClass, fastGetClassVar, fastGetConstant, fastGetConstant, fastGetConstantAt, fastGetConstantFrom, fastGetConstantFromConstMissing, fastGetConstantFromNoConstMissing, fastHasClassVariable, fastHasConstant, fastIsClassVarDefined, fastIsConstantDefined, fastSetClassVar, fastSetConstant, fastStoreClassVariable, fastStoreConstant, fetchClassVariable, fetchConstant, fetchConstant, fetchConstant, fetchConstant, fetchConstantEntry, fetchConstantEntry, findImplementer, finishAutoload, finishAutoload, finishCreateModuleClass, finishModuleClass, finishRefinementClass, freeze, getAncestorList, getAutoloadConstant, getAutoloadConstant, getAutoloadConstant, getAutoloadConstant, getAutoloadFile, getAutoloadMap, getAutoloadMapForWrite, getBaseName, getCachedMethods, getCacheProxy, getCacheToken, getClass, getClass, getClassIndex, getClassVar, getClassVar, getClassVar, getClassVar, getClassVariableNameList, getClassVariables, getClassVariablesForRead, getClassVarQuiet, getConstant, getConstant, getConstant, getConstant, getConstant, getConstant, getConstantAt, getConstantAt, getConstantAt, getConstantAt, getConstantAtSpecial, getConstantAtSpecial, getConstantFrom, getConstantFrom, getConstantFromConstMissing, getConstantFromConstMissing, getConstantFromNoConstMissing, getConstantFromNoConstMissing, getConstantFromNoConstMissing, getConstantFromNoConstMissing, getConstantMap, getConstantMapForWrite, getConstantNames, getConstantNames, getConstantNoConstMissing, getConstantNoConstMissing, getConstantNoConstMissing, getConstantNoConstMissing, getConstantNoConstMissing, getConstantNoConstMissing, getConstantNoConstMissingSkipAutoload, getConstantNoConstMissingSkipAutoload, getConstantNoConstMissingSKipAutoload, getConstantSourceLocation, getConstantSourceLocation, getConstantWithAutoload, getConstantWithAutoload, getDelegate, getGeneration, getGenerationObject, getIdTest, getIncludingHierarchiesForWrite, getInvalidator, getJavaProxy, getMethodLocation, getMethods, getMethodsForWrite, getModule, getModule, getName, getName, getNonIncludedClass, getOrigin, getParent, getRefinements, getRefinementsForWrite, getSimpleName, getSimpleName, getStoredConstantList, getStoredConstantNameList, getSuperClass, hasAncestor, hasAutoload, hasClassVariable, hasConstant, hash, hashCode, hasInternalModuleVariable, hasModuleInHierarchy, hasModuleInPrepends, hasPrepends, include, include, include, include, include_p, included, included_modules, includeModule, includeModule, initialize, instance_method, instance_method, instance_methods, instance_methods, instance_methods19, instanceMethods, instanceMethods, instanceMethods, invalidateCacheDescendants, invalidateConstantCache, invalidateConstantCache, invalidateConstantCaches, invalidateCoreClasses, isClassVarDefined, isConstantDefined, isConstantDefined, isConstantDefined, isIncluded, isIncludedIntoRefinement, isInstance, isKindOfModule, isMethodBound, isMethodBound, isMethodBuiltin, isPrepended, isRefinement, isSame, isSameOrigin, isSynchronized, isValidConstantName, isValidConstantPath, kindOf, loadPopulatorFor, marshalTo, marshalTo, method_added, method_defined_p, method_defined_p, method_removed, method_undefined, methodAdded, mix, mix, module_eval, module_eval, module_eval, module_eval, module_eval, module_exec, module_exec, module_function, name, name, needsImplementer, nesting, newActivatedRefinementsMap, newIdTest, newIncludeClass, newMethod, newMethod, newMethod, newMethod, newMethod, newMethod, newMethod, newModule, newModule, newModule, newModule, newModuleBootstrap, newRefinementsMap, newRefinementsMap, op_cmp, op_cmp, op_eqq, op_equal, op_ge, op_ge, op_gt, op_gt, op_le, op_le, op_lt, op_lt, prepend, prepend_features, prepend_features, prepended, prependModule, prependModule, prependModule, private_class_method, private_class_method, private_constant, private_constant, private_instance_methods, private_instance_methods, private_method_defined, private_method_defined, protected_instance_methods, protected_instance_methods, protected_method_defined, protected_method_defined, public_class_method, public_class_method, public_constant, public_constant, public_instance_method, public_instance_method, public_instance_methods, public_instance_methods, public_instance_methods19, public_method_defined, public_method_defined, publicConstDefinedFrom, publicConstDefinedFrom, putAlias, putAlias, putAlias, putAlias, putMethod, putMethod, rbPrivate, rbProtected, rbPublic, refine, refined_class, refinements, remove_class_variable, remove_class_variable19, remove_const, remove_method, removeClassProvider, removeClassVariable, removeClassVariable, removeMethod, resolveRefinedMethod, resolveUndefConstant, respondsToMethod, respondsToMethod, retrieveMethod, ruby2_keywords, rubyBaseName, rubyBaseName, rubyName, rubyName, searchAncestor, searchInternalModuleVariable, searchMethod, searchMethodCommon, searchMethodEntryInner, searchMethodInner, searchMethodLateral, searchWithCache, searchWithCache, searchWithRefinements, set_temporary_name, setBaseName, setCacheProxy, setClassVar, setClassVar, setConstant, setConstant, setConstant, setConstant, setConstant, setConstant, setConstantQuiet, setConstantQuiet, setConstantVisibility, setConstantVisibility, setInternalModuleVariable, setJavaProxy, setMethodLocation, setMethodVisibility, setMethodVisibility, setParent, setRefinements, setSuperClass, singleton_class_p, storeClassVariable, storeClassVariable, storeConstant, storeConstant, storeConstant, storeConstant, storeConstant, superClass, superClass, symbolName, symbolName, syncClassVariables, syncConstants, tap, target, testModuleMatch, to_s, to_s, undef, undef_method, undefined_instance_method, undefinedMethodMessage, undefineMethod, undefMethods, updateGeneration, used_modules, used_refinements, using, usingModule, usingTemporaryName, validateClassVariable, validateClassVariable, validateClassVariable, validateClassVariable, validateConstant, validateConstant, validateConstantMethods inherited from class org.jruby.RubyObject
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, dig, dig1, dig2, eqlInternal, equalInternal, finishObjectClass, inspect, puts, specificEval, toRubyString, toStringMethods inherited from class org.jruby.RubyBasicObject
addFinalizer, addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkCallMethod, checkStringType, cloneSetup, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, display, dup, dupFinalizer, dupSetup, ensureInstanceVariablesSettable, eql, eql_p, eql_p, equal_p, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, finishBasicObjectClass, forEachInstanceVariable, forEachInstanceVariableName, frozen_p, getCurrentContext, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getJavaClass, getMarshalVariableList, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hash, hashyInspect, hasInstanceVariable, hasInstanceVariables, hasInternalVariable, hasVariables, id, infectBy, initialize, initialize_copy, inspect, inspect, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval, instance_exec, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, isBuiltin, isFalse, isFrozen, isImmediate, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, makeMetaClass, makeMetaClassBootstrap, method, method, method, method_missing, methods, methods, nil_p, nonFixnumHashCode, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_match, op_not, op_not_equal, op_not_match, private_methods, protected_methods, public_methods, rbClone, rbClone, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method, singleton_method, singleton_method_added, singleton_method_removed, singleton_method_undefined, singleton_methods, singletonClass, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_a, to_a, trust, type, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jruby.runtime.builtin.IRubyObject
checkStringType19, dup, marshalLiveVariables
-
Field Details
-
CLASS_ALLOCATOR
-
DEFAULT_OBJECT_MARSHAL
-
runtime
-
marshal
-
CS_IDX_INITIALIZE
public static final int CS_IDX_INITIALIZE- See Also:
-
-
Constructor Details
-
RubyClass
separate path for MetaClass and IncludedModuleWrapper construction (rb_class_boot version for MetaClasses) no marshal, allocator initialization and addSubclass(this) here! -
RubyClass
This is an internal API only used by Ruby constructor before ThreadContext exists.- Parameters:
runtime-superClass-Class-
-
RubyClass
used by CLASS_ALLOCATOR (any Class' class will be a Class!) also used to bootstrap Object class -
RubyClass
rb_class_boot (for plain Classes) also used to bootstrap Module and Class classes -
RubyClass
A constructor which allows passing in an array of supplementary call sites.
-
-
Method Details
-
finishClassClass
-
finishCreateClassClass
-
getAllocator
-
setAllocator
Deprecated.Useallocator(ObjectAllocator)instead.- Parameters:
allocator-
-
allocator
Define an allocator for this class (usually this is part ofDefine.defineClass(ThreadContext, String, RubyClass, ObjectAllocator)).- Parameters:
allocator- to use- Returns:
- itself for a composable API
-
marshalWith
Set what marshaller we use or generally use this to specify the typw cannot Marshal data.- Parameters:
marshal- the marshaller- Returns:
- itself for composable API
-
reifiedClass
Sets reified class to use.- Parameters:
reifiedClass- the java type to use- Returns:
- itself for composable API
-
setClassAllocator
Set a reflective allocator that calls a no-arg constructor on the given class.- Parameters:
clazz- The class on which to call the default constructor to allocate
-
setRubyClassAllocator
Set a reflective allocator that calls the "standard" Ruby object constructor (Ruby, RubyClass) on the given class.- Parameters:
clazz- The class from which to grab a standard Ruby constructor
-
setRubyStaticAllocator
Set a reflective allocator that calls the "standard" Ruby object constructor (Ruby, RubyClass) on the given class via a static __allocate__ method intermediate.- Parameters:
clazz- The class from which to grab a standard Ruby __allocate__ method.Note: Used with `jrubyc --java` generated (interoperability) class files.
Note: Used with new concrete extension.
-
allocate
Deprecated. -
allocate
-
getBaseCallSite
-
getBaseCallSites
-
getExtraCallSites
-
getVariableTableManager
-
hasObjectID
public boolean hasObjectID() -
getVariableAccessorsForRead
-
getVariableAccessorForWrite
-
getVariableAccessorForRead
-
getFFIHandleAccessorForRead
-
getFFIHandleAccessorForWrite
-
getObjectGroupAccessorForRead
-
getObjectGroupAccessorForWrite
-
getVariableTableSize
public int getVariableTableSize() -
getVariableTableSizeWithExtras
public int getVariableTableSizeWithExtras() -
getVariableNames
Get an array of all the known instance variable names. The offset into the array indicates the offset of the variable's value in the per-object variable array.- Returns:
- a copy of the array of known instance variable names
-
getVariableTableCopy
-
getNativeClassIndex
Description copied from class:RubyObjectThis is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. Will generally return a value from org.jruby.runtime.ClassIndex- Specified by:
getNativeClassIndexin interfaceCoreObjectType- Overrides:
getNativeClassIndexin classRubyModule- Returns:
- the ClassIndex of the native type this object was constructed from
- See Also:
-
isModule
public boolean isModule()Description copied from class:RubyBasicObjectSpecifically polymorphic method that are meant to be overridden by modules to specify that they are modules in an easy way.- Specified by:
isModulein interfaceIRubyObject- Overrides:
isModulein classRubyModule- Returns:
- true if an object is Ruby Module instance (note that it will return false for Ruby Classes).
-
isClass
public boolean isClass()Description copied from class:RubyBasicObjectSpecifically polymorphic method that are meant to be overridden by classes to specify that they are classes in an easy way.- Specified by:
isClassin interfaceIRubyObject- Overrides:
isClassin classRubyModule- Returns:
- true if an object is Ruby Class instance (note that it will return false for Ruby singleton classes).
-
isSingleton
public boolean isSingleton()- Overrides:
isSingletonin classRubyModule
-
createBootstrapClass
public static RubyClass createBootstrapClass(Ruby runtime, String name, RubyClass superClass, ObjectAllocator allocator) boot_defclass Create an initial Object meta class before Module and Kernel dependencies have squirreled themselves together.- Parameters:
runtime- we need it- Returns:
- a half-baked meta class for object
-
newClass
Deprecated.Construct a new class with the given name scoped under Object (global) and with Object as its immediate superclass. Corresponds to rb_class_new in MRI. -
newClass
@Deprecated(since="10.0") public static RubyClass newClass(Ruby runtime, RubyClass superClass, CallSite[] extraCallSites) Deprecated. -
newClass
public static RubyClass newClass(ThreadContext context, RubyClass superClass, CallSite[] extraCallSites) A variation on newClass that allow passing in an array of supplementary call sites to improve dynamic invocation. -
newClass
@Deprecated(since="10.0") public static RubyClass newClass(Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent) Deprecated.Construct a new class with the given name, allocator, parent class, and containing class. If setParent is true, the class's parent will be explicitly set to the provided parent (rather than the new class just being assigned to a constant in that parent). Corresponds to rb_class_new/rb_define_class_id/rb_name_class/rb_set_class_path in MRI. -
newClass
@Deprecated(since="10.0") public static RubyClass newClass(Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, String file, int line) Deprecated. -
newClass
public static RubyClass newClass(ThreadContext context, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, String file, int line) -
newClass
@Deprecated(since="10.0") public static RubyClass newClass(Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, CallSite[] extraCallSites) Deprecated. -
newClass
public static RubyClass newClass(ThreadContext context, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, CallSite[] extraCallSites) A variation on newClass that allows passing in an array of supplementary call sites to improve dynamic invocation performance. -
newClassBootstrap
public static RubyClass newClassBootstrap(Ruby runtime, RubyClass Object, RubyClass Class, String name) This is an internal API for bootstrapping a few classes before ThreadContext is available. The API is intentionally limited/obtuse so no one is tempted to try and use it.- Parameters:
runtime- the runtimeObject- reference to Object which is superclass and parent for new typename- the name of the new class- Returns:
- the new class.
-
finvoke
-
finvokeWithRefinements
public IRubyObject finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, Block block) -
finvoke
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, Block block) -
finvokeWithRefinements
public IRubyObject finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject[] args, Block block) -
finvoke
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, Block block) -
finvokeWithRefinements
public IRubyObject finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject arg, Block block) -
finvoke
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block) -
finvokeWithRefinements
public IRubyObject finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject arg0, IRubyObject arg1, Block block) -
finvoke
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) -
finvokeWithRefinements
public IRubyObject finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) -
finvoke
-
invokePublic
public IRubyObject invokePublic(ThreadContext context, IRubyObject self, String name, IRubyObject arg) MRI: rb_funcallv_public -
finvokeChecked
Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate. MRI: rb_check_funcall -
finvokeChecked
public final IRubyObject finvokeChecked(ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites) Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate. MRI: rb_check_funcall -
finvokeChecked
public final IRubyObject finvokeChecked(ThreadContext context, IRubyObject self, String name, IRubyObject... args) Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate. MRI: rb_check_funcall -
finvokeChecked
public final IRubyObject finvokeChecked(ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites, IRubyObject... args) Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate. MRI: rb_check_funcall -
finvoke
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args) -
finvoke
-
finvoke
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1) -
finvoke
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) -
checkMethodBasicDefinition
-
invokeInherited
-
newInstance
rb_class_new_instance -
newInstance
-
newInstance
-
newInstance
public IRubyObject newInstance(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block) -
newInstance
public IRubyObject newInstance(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) -
newInstance
-
initialize
rb_class_initialize- Overrides:
initializein classRubyModule
-
initialize
-
initialize_copy
rb_class_init_copy- Overrides:
initialize_copyin classRubyModule- Parameters:
context- the thread contextoriginal- the original- Returns:
- a copy unless the same thing
-
subclasses
-
subclasses
-
subclasses
-
getSubclassesForRead
public org.jruby.RubyClass.RubyClassSet getSubclassesForRead() -
addSubclass
Add a new subclass to the weak set of subclasses. This version always constructs a new set to avoid having to synchronize against the set when iterating it for invalidation in invalidateCacheDescendants.- Parameters:
subclass- The subclass to add
-
removeSubclass
Remove a subclass from the weak set of subclasses.- Parameters:
subclass- The subclass to remove
-
replaceSubclass
Replace an existing subclass with a new one.- Parameters:
subclass- The subclass to removenewSubclass- The subclass to replace it with
-
becomeSynchronized
public void becomeSynchronized()make this class and all subclasses sync- Overrides:
becomeSynchronizedin classRubyModule
-
invalidateCacheDescendants
Invalidate all subclasses of this class by walking the set of all subclasses and asking them to invalidate themselves. Note that this version works against a reference to the current set of subclasses, which could be replaced by the time this iteration is complete. In theory, there may be a path by which invalidation would miss a class added during the invalidation process, but the exposure is minimal if it exists at all. The only way to prevent it would be to synchronize both invalidation and subclass set modification against a global lock, which we would like to avoid.- Overrides:
invalidateCacheDescendantsin classRubyModule
-
getClassRuntime
-
getRealClass
Get the "real" class, either the current one or the nearest ancestor that is not a singleton or include wrapper.- Returns:
- the nearest non-singleton non-include class
-
getRealModule
Equivalent togetRealClass().- Overrides:
getRealModulein classRubyModule- Returns:
- the nearest non-singleton non-include class
-
inherited
-
inherit
Deprecated.rb_class_inherited (reversed semantics!) -
superclass
Return the real super class of this class. rb_class_superclass -
attached_object
-
checkInheritable
Deprecated.rb_check_inheritable -
checkInheritable
-
getMarshal
-
setMarshal
Deprecated.UsemarshalWith(ObjectMarshal)instead.- Parameters:
marshal-
-
marshal
@Deprecated(since="10.0", forRemoval=true) public final void marshal(Object obj, MarshalStream marshalStream) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
marshal
public final void marshal(ThreadContext context, RubyOutputStream out, Object obj, MarshalDumper marshalStream) -
unmarshal
@Deprecated(since="10.0", forRemoval=true) public final Object unmarshal(UnmarshalStream unmarshalStream) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
unmarshal
-
marshalTo
@Deprecated(since="10.0", forRemoval=true) public static void marshalTo(RubyClass clazz, MarshalStream output) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
marshalTo
public static void marshalTo(ThreadContext context, RubyOutputStream out, RubyClass clazz, MarshalDumper output) -
unmarshalFrom
@Deprecated(since="10.0", forRemoval=true) public static RubyClass unmarshalFrom(UnmarshalStream input) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
unmarshalFrom
public static RubyClass unmarshalFrom(ThreadContext context, RubyInputStream in, MarshalLoader input) -
isReifiable
public boolean isReifiable(boolean[] java) Whether this class can be reified into a Java class. Currently only objects that descend from Object (or descend from Ruby-based classes that descend from Object) can be reified.- Parameters:
java- If reified from java (out param)- Returns:
- true if the class can be reified, false otherwise. The out param indicate if it is java concrete reification
-
reifyWithAncestors
public void reifyWithAncestors() -
reifyWithAncestors
-
reifyWithAncestors
public void reifyWithAncestors(boolean useChildLoader) -
reifyWithAncestors
Reify this class, first reifying all its ancestors. This causes the reified class and all ancestors' reified classes to come into existence, so any future changes will not be reflected. This form also accepts a string argument indicating a path in which to dump the intermediate reified class bytes.- Parameters:
classDumpDir- the path in which to dump reified class bytesuseChildLoader- whether to load the class into its own child classloader
-
reify
public final void reify() -
reify
-
reify
public final void reify(boolean useChildLoader) -
reify
Stand up a real Java class for the backing store of this object- Parameters:
classDumpDir- Directory to save reified java class
-
getPositionOrDefault
-
setReifiedClass
Deprecated.UsereifiedClass(Class)instead.- Parameters:
reifiedClass-
-
getReifiedClass
Deprecated.UsereifiedClass()instead.- Returns:
-
reifiedClass
Gets a reified Ruby or Java class. To ensure a specific type, seegetReifiedRubyClass()orgetReifiedJavaClass() -
getReifiedRubyClass
Gets a reified Ruby class. Throws if this is a Java class -
getReifiedJavaClass
Gets a reified Java class. Throws if this is a Ruby class -
getIsReifiedExtendedJavaClass
If the current class is reified (null otherwise) and if it extends java- Returns:
- Null if not reified, true if a concrete extension class, and false if a ruby class
-
nearestReifiedClass
-
getParameterAnnotations
-
addParameterAnnotation
-
getMethodAnnotations
-
getFieldAnnotations
-
addMethodAnnotation
-
addFieldAnnotation
-
getMethodSignatures
-
getAllMethodSignatures
-
getFieldSignatures
-
addMethodSignature
-
addFieldSignature
-
getClassAnnotations
-
addClassAnnotation
-
getClassConfig
-
setClassConfig
-
toJava
Description copied from interface:IRubyObjectConvert the object to the specified Java class, if possible.- Specified by:
toJavain interfaceIRubyObject- Overrides:
toJavain classRubyModule- Type Parameters:
T- type- Parameters:
target- The target type to which the object should be converted.- Returns:
- java type
- See Also:
-
smartDump
@Deprecated(since="10.0", forRemoval=true) public void smartDump(MarshalStream stream, IRubyObject target) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.Marshal the given object to the marshaling stream, being "smart" and caching how to do that marshaling. If the class defines a custom "respond_to?" method, then the behavior of dumping could vary without our class structure knowing it. As a result, we do only the slow-path classic behavior. If the class defines a real "marshal_dump" method, we cache and use that. If the class defines a real "_dump" method, we cache and use that. If the class neither defines none of the above methods, we use a fast path directly to the default dumping logic.- Parameters:
stream- The stream to which to marshal the datatarget- The object whose data should be marshaled- Throws:
IOException- If there is an IO exception while writing to the stream.
-
smartDump
public void smartDump(ThreadContext context, RubyOutputStream out, MarshalDumper stream, IRubyObject target) -
smartLoadNewUser
Load marshaled data into a blank target object using marshal_load, being "smart" and caching the mechanism for invoking marshal_load. If the class implements a custom respond_to?, cache nothing and go slow path invocation of respond_to? and marshal_load every time. Raise error if respond_to? :marshal_load returns true and no :marshal_load is defined. If the class implements marshal_load, cache and use that. Otherwise, error, since marshal_load is not present.- Parameters:
target- The blank target object into which marshal_load will deserialize the given datadata- The marshaled data- Returns:
- The fully-populated target object
-
smartLoadOldUser
Load marshaled data into a blank target object using _load, being "smart" and caching the mechanism for invoking _load. If the metaclass implements custom respond_to?, cache nothing and go slow path invocation of respond_to? and _load every time. Raise error if respond_to? :_load returns true and no :_load is defined. If the metaclass implements _load, cache and use that. Otherwise, error, since _load is not present.- Parameters:
data- The marshaled data, to be reconstituted into an object by _load- Returns:
- The fully-populated target object
-
invoke
@Deprecated public IRubyObject invoke(ThreadContext context, IRubyObject self, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block) Deprecated. -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType, Block block) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
invoke
@Deprecated(since="9.4-") public IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType) Deprecated.Use finvoke if you do not want visibility-checking or invokeFrom if you do.This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134 -
getObjectIdAccessorField
Deprecated. -
getFFIHandleAccessorField
Deprecated. -
getObjectGroupAccessorField
Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, Block block) Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject[] args, Block block) Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg, Block block) Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block) Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name) Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject[] args) Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg) Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1) Deprecated. -
invokeFrom
@Deprecated public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) Deprecated.
-
reifiedClass()instead.