Top Inners Fields Constructors Methods
org.jruby

public Class RubyClass

extends RubyModule
Class Inheritance
Known Direct Subclasses
org.jruby.IncludedModule, org.jruby.MetaClass, org.jruby.PrependedModule
Annotations
@JRubyClass
name:Class
parent:Module
Static Imports
org.jruby.api.Access.basicObjectClass, .Access.classClass, .Access.instanceConfig, .Access.objectClass, .Convert.asSymbol, org.jruby.api.Error.*, .Warn.warn, org.jruby.runtime.ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR, .Visibility.PRIVATE, .Visibility.PUBLIC, org.jruby.util.CodegenUtils.ci, .CodegenUtils.p, .CodegenUtils.sig, org.objectweb.asm.Opcodes.ACC_BRIDGE, .Opcodes.ACC_FINAL, .Opcodes.ACC_PRIVATE, .Opcodes.ACC_PUBLIC, .Opcodes.ACC_STATIC, .Opcodes.ACC_SUPER, .Opcodes.ACC_SYNTHETIC, .Opcodes.ACC_VARARGS

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract class
pack-priv static interface
public class
public static enum
private static class
RubyClass.MarshalTuple

A tuple representing the mechanism by which objects should be marshaled.

private static enum
RubyClass.MarshalType

An enum defining the type of marshaling a given class's objects employ.

private class
pack-priv static interface
pack-priv static interface
private static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private int
private ObjectAllocator
private int
private volatile CallSite[]
private RubyClass.MarshalTuple
cachedDumpMarshal

A cached tuple of method, type, and generation for dumping

private CacheEntry
cachedLoad

A cached tuple of method and generation for marshal loading

public static final ObjectAllocator
private int
public static final int
private static final boolean
protected static final ObjectMarshal<T>
private static final PositionAware
pack-priv static RubyClass.RubyClassSet
private CallSite[]
private JavaClassConfiguration
private static final Logger
protected ObjectMarshal<T>
private final RubyClass
realClass

The "real" class, used by includes and singletons to locate the actual type of the object

private Class<? extends Reified>
private Boolean
protected final Ruby
private volatile RubyClass.RubyClassSet
private static final AtomicReferenceFieldUpdater<RubyClass, RubyClass.RubyClassSet>
private VariableTableManager
variableTableManager

Variable table manager for this class

private static final AtomicReferenceFieldUpdater<RubyClass, RubyClass.RubyClassSet>
private volatile RubyClass.RubyClassSet
Inherited from org.jruby.RubyModule:
baseNameBUILTIN_CONSTANTcachedMethodsCACHEPROXY_FclassIndexgenerationgenerationObjectidINCLUDED_INTO_REFINEMENTincludingHierarchiesindexIS_OVERLAID_FkindOfmethodInvalidatormethodLocationmethodsMODULE_ALLOCATORNEEDSIMPL_FNormalCacheEntryFactoryOMOD_SHAREDparentREFINED_MODULE_FrefinementStoreSCOPE_CAPTURING_METHODSsuperClassTEMPORARY_NAME

Constructor Summary

AccessConstructor and Description
protected
RubyClass(Ruby runtime, RubyClass superClass, boolean objectSpace)

separate path for MetaClass and IncludedModuleWrapper construction (rb_class_boot version for MetaClasses) no marshal, allocator initialization and addSubclass(this) here!

protected
RubyClass(Ruby runtime, RubyClass superClass, RubyClass Class)

This is an internal API only used by Ruby constructor before ThreadContext exists.

protected
RubyClass(Ruby runtime)

used by CLASS_ALLOCATOR (any Class' class will be a Class!) also used to bootstrap Object class

protected
RubyClass(Ruby runtime, RubyClass superClazz)

rb_class_boot (for plain Classes) also used to bootstrap Module and Class classes

protected
RubyClass(Ruby runtime, RubyClass superClazz, CallSite[] extraCallSites)

A constructor which allows passing in an array of supplementary call sites.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public synchronized void
addClassAnnotation(Class<?> annotation, Map<K, V> fields)

public synchronized void
addFieldAnnotation(String fieldName, Class<?> annotation, Map<K, V> fields)

public synchronized void
addFieldSignature(String fieldName, Class<?> type)

pack-priv void
public synchronized void
addMethodAnnotation(String methodName, Class<?> annotation, Map<K, V> fields)

public synchronized void
addMethodSignature(String methodName, Class<?>[] types)

public synchronized void
addParameterAnnotation(String method, int i, Class<?> annoClass, Map<String, Object> value)

public void
addSubclass(RubyClass
The subclass to add
subclass
)

Add a new subclass to the weak set of subclasses.

private void
public IRubyObject
allocate()
Deprecated since 10.0.

public IRubyObject
public <T extends RubyClass> T

Returns:

itself for a composable API
allocator
(ObjectAllocator
to use
allocator
)

Define an allocator for this class (usually this is part of org.jruby.api.Define#defineClass(ThreadContext, String, RubyClass, ObjectAllocator)).

public IRubyObject
public void
becomeSynchronized()

Overrides org.jruby.RubyModule.becomeSynchronized.

make this class and all subclasses sync

pack-priv static boolean
private IRubyObject
private IRubyObject
private IRubyObject
private static IRubyObject
private static IRubyObject
checkFuncallExec(ThreadContext context, IRubyObject self, String name, CallSite methodMissingSite, IRubyObject... args)

private static IRubyObject
checkFuncallFailed(ThreadContext context, IRubyObject self, String name, RubyClass expClass, IRubyObject... args)

private static IRubyObject
private static IRubyObject
checkFuncallMissing(ThreadContext context, RubyClass klass, IRubyObject self, String method, CachingCallSite respondToMissingSite, CachingCallSite methodMissingSite, IRubyObject... args)

private static boolean
checkFuncallRespondTo(ThreadContext context, RubyClass klass, IRubyObject recv, String mid)

Check if the method has a custom respond_to?

private static boolean
checkFuncallRespondTo(ThreadContext context, RubyClass klass, IRubyObject recv, RespondToCallSite respondToSite)

Check if the method has a custom respond_to?

public static void
checkInheritable(IRubyObject superClass)
Deprecated

rb_check_inheritable

public static void
public boolean
private void
private void
public static RubyClass

Returns:

a half-baked meta class for object
createBootstrapClass
(Ruby
we need it
runtime
,
String name, RubyClass superClass, ObjectAllocator allocator)

boot_defclass Create an initial Object meta class before Module and Kernel dependencies have squirreled themselves together.

private CallSite[]
private void
dumpReifiedClass(ThreadContext context, String dumpDir, String javaPath, byte[] classBytes)

public static void
private void
public static void
private void
public IRubyObject
finvoke(ThreadContext context, IRubyObject self, String name, Block block)

public IRubyObject
finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, Block block)

public IRubyObject
finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, Block block)

public IRubyObject
finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block)

public IRubyObject
finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)

public IRubyObject
finvoke(ThreadContext context, IRubyObject self, String name)

public IRubyObject
finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args)

public IRubyObject
public IRubyObject
public IRubyObject
public final IRubyObject
finvokeChecked(ThreadContext context, IRubyObject self, String name)

Safely attempt to invoke the given method name on self, using respond_to?

public final IRubyObject
finvokeChecked(ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites)

Safely attempt to invoke the given method name on self, using respond_to?

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?

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?

public IRubyObject
finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, Block block)

public IRubyObject
finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject[] args, Block block)

public IRubyObject
finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject arg, Block block)

public IRubyObject
finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject arg0, IRubyObject arg1, Block block)

public IRubyObject
finvokeWithRefinements(ThreadContext context, IRubyObject self, StaticScope staticScope, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)

private void
public Map<String, List<Class<?>[]>>
public ObjectAllocator
public CallSite
getBaseCallSite(int idx)

public CallSite[]
public Map<Class<?>, Map<String, Object>>
public synchronized JavaClassConfiguration
public final Ruby
public CallSite[]
public VariableAccessorField
getFFIHandleAccessorField()
Deprecated since 9.4-.

public VariableAccessor
public VariableAccessor
public Map<String, Map<Class<?>, Map<String, Object>>>
public Map<String, Class<?>>
public Boolean

Returns:

Null if not reified, true if a concrete extension class, and false if a ruby class
getIsReifiedExtendedJavaClass
()

If the current class is reified (null otherwise) and if it extends java

public final ObjectMarshal<T>
public Map<String, Map<Class<?>, Map<String, Object>>>
public Map<String, Class<?>[]>
public ClassIndex
getNativeClassIndex()

Overrides org.jruby.RubyModule.getNativeClassIndex.

Implements org.jruby.runtime.marshal.CoreObjectType.getNativeClassIndex.

This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.

public VariableAccessorField
getObjectGroupAccessorField()
Deprecated since 9.4-.

public VariableAccessor
public VariableAccessor
public VariableAccessorField
getObjectIdAccessorField()
Deprecated since 9.4-.

private static RubyClass.RubyClassSet
private static RubyClass.RubyClassSet
public Map<String, List<Map<Class<?>, Map<String, Object>>>>
public PositionAware
public final RubyClass

Returns:

the nearest non-singleton non-include class
getRealClass
()

Get the "real" class, either the current one or the nearest ancestor that is not a singleton or include wrapper.

public RubyModule

Returns:

the nearest non-singleton non-include class
getRealModule
()

Overrides org.jruby.RubyModule.getRealModule.

Equivalent to getRealClass().

public Class<? extends Reified>
getReifiedClass()
Deprecated since 10.0. Use RubyClass#reifiedClass() instead.

public Class<? extends ReifiedJavaProxy>
getReifiedJavaClass()

Gets a reified Java class.

private String
public Class<? extends IRubyObject>
getReifiedRubyClass()

Gets a reified Ruby class.

public RubyClass.RubyClassSet
private RubyClass.RubyClassSet
public VariableAccessor
public VariableAccessor
public Map<String, VariableAccessor>
public String[]

Returns:

a copy of the array of known instance variable names
getVariableNames
()

Get an array of all the known instance variable names.

public Map<String, VariableAccessor>
public VariableTableManager
public int
public int
private RubyClass.RubyClassSet
private RubyClass.RubyClassSet
public boolean
public void
inherit(RubyClass superClazz)
Deprecated since 10.0.

rb_class_inherited (reversed semantics!)

public IRubyObject
public IRubyObject
initialize(ThreadContext context, Block block)

Overrides org.jruby.RubyModule.initialize.

rb_class_initialize

public IRubyObject
initialize(ThreadContext context, IRubyObject superObject, Block block)

public IRubyObject
initialize_copy(ThreadContext
the thread context
context
,
IRubyObject
the original
original
)

Overrides org.jruby.RubyModule.initialize_copy.

rb_class_init_copy

private RubyClass
initializeCommon(ThreadContext context, RubyClass superClazz, Block block)

public void
invalidateCacheDescendants(ThreadContext context)

Overrides org.jruby.RubyModule.invalidateCacheDescendants.

Invalidate all subclasses of this class by walking the set of all subclasses and asking them to invalidate themselves.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)
Deprecated

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, CallType callType, Block block)
Deprecated since 9.4-. 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.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType, Block block)
Deprecated since 9.4-. 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.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType, Block block)
Deprecated since 9.4-. 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.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType, Block block)
Deprecated since 9.4-. 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.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType, Block block)
Deprecated since 9.4-. 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.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, CallType callType)
Deprecated since 9.4-. 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.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType)
Deprecated since 9.4-. 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.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType)
Deprecated since 9.4-. 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.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType callType)
Deprecated since 9.4-. 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.

public IRubyObject
invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType callType)
Deprecated since 9.4-. 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.

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, Block block)
Deprecated

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject[] args, Block block)
Deprecated

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg, Block block)
Deprecated

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block)
Deprecated

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
Deprecated

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name)
Deprecated

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject[] args)
Deprecated

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg)
Deprecated

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1)
Deprecated

public IRubyObject
invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
Deprecated

public IRubyObject
public IRubyObject
invokePublic(ThreadContext context, IRubyObject self, String name, IRubyObject arg)

MRI: rb_funcallv_public

public boolean
isClass()

Overrides org.jruby.RubyModule.isClass.

Implements org.jruby.runtime.builtin.IRubyObject.isClass.

Specifically polymorphic method that are meant to be overridden by classes to specify that they are classes in an easy way.

public boolean
isModule()

Overrides org.jruby.RubyModule.isModule.

Implements org.jruby.runtime.builtin.IRubyObject.isModule.

Specifically polymorphic method that are meant to be overridden by modules to specify that they are modules in an easy way.

public boolean

Returns:

true if the class can be reified, false otherwise. The out param indicate if it is java concrete reification
isReifiable
(boolean[]
If reified from java (out param)
java
)

Whether this class can be reified into a Java class.

public boolean
private boolean
isVarArgsSignature(final String method, final Class<T>[] methodSignature)

private void
logReifyException(ThreadContext context, final Throwable failure, final boolean error)

public final void
marshal(Object obj, MarshalStream marshalStream)
Deprecated for removal since 10.0.

public final void
marshal(ThreadContext context, RubyOutputStream out, Object obj, MarshalDumper marshalStream)

public static void
marshalTo(RubyClass clazz, MarshalStream output)
Deprecated for removal since 10.0.

public static void
public <T extends RubyClass> T

Returns:

itself for composable API
marshalWith
(ObjectMarshal<T>
the marshaller
marshal
)

Set what marshaller we use or generally use this to specify the typw cannot Marshal data.

public static Class<?>
public static RubyClass
newClass(Ruby runtime, RubyClass superClass)
Deprecated since 10.0.

Construct a new class with the given name scoped under Object (global) and with Object as its immediate superclass.

public static RubyClass
newClass(Ruby runtime, RubyClass superClass, CallSite[] extraCallSites)
Deprecated since 10.0.

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.

public static RubyClass
newClass(Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent)
Deprecated since 10.0.

Construct a new class with the given name, allocator, parent class, and containing class.

public static RubyClass
newClass(Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, String file, int line)
Deprecated since 10.0.

public static RubyClass
newClass(ThreadContext context, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, String file, int line)

public static RubyClass
newClass(Ruby runtime, RubyClass superClass, String name, ObjectAllocator allocator, RubyModule parent, boolean setParent, CallSite[] extraCallSites)
Deprecated since 10.0.

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.

public static RubyClass

Returns:

the new class.
newClassBootstrap
(Ruby
the runtime
runtime
,
RubyClass
reference to Object which is superclass and parent for new type
Object
,
RubyClass Class, String
the name of the new class
name
)

This is an internal API for bootstrapping a few classes before ThreadContext is available.

private RubyClass.SubclassArray
public IRubyObject
newInstance(ThreadContext context, Block block)

rb_class_new_instance

public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
newInstance(ThreadContext context, IRubyObject[] args, Block block)

private RubyModule.SubclassList
newSubclassesList(boolean includeDescendants)

private static RaiseException
newTypeError(final Ruby runtime, final String msg, final Exception e)

pack-priv static boolean
private static void
private static boolean
public <T extends RubyClass> T

Returns:

itself for composable API
reifiedClass
(Class<? extends IRubyObject>
the java type to use
reifiedClass
)

Sets reified class to use.

public Class<? extends Reified>
reifiedClass()

Gets a reified Ruby or Java class.

public final void
public final void
reify(String classDumpDir)

public final void
reify(boolean useChildLoader)

public synchronized void
reify(String
Directory to save reified java class
classDumpDir
,
boolean useChildLoader)

Stand up a real Java class for the backing store of this object

public void
public void
reifyWithAncestors(String classDumpDir)

public void
reifyWithAncestors(boolean useChildLoader)

public void
reifyWithAncestors(String
the path in which to dump reified class bytes
classDumpDir
,
boolean
whether to load the class into its own child classloader
useChildLoader
)

Reify this class, first reifying all its ancestors.

public void
removeSubclass(RubyClass
The subclass to remove
subclass
)

Remove a subclass from the weak set of subclasses.

public void
replaceSubclass(RubyClass
The subclass to remove
subclass
,
RubyClass
The subclass to replace it with
newSubclass
)

Replace an existing subclass with a new one.

public void
setAllocator(ObjectAllocator allocator)
Deprecated since 10.0. Use org.jruby.RubyClass#allocator(ObjectAllocator) instead.

public void
setClassAllocator(final Class<?>
The class on which to call the default constructor to allocate
clazz
)

Set a reflective allocator that calls a no-arg constructor on the given class.

public synchronized void
public final void
setMarshal(ObjectMarshal<T> marshal)
Deprecated since 10.0. Use org.jruby.RubyClass#marshalWith(ObjectMarshal) instead.

public void
setReifiedClass(Class<? extends IRubyObject> reifiedClass)
Deprecated since 10.0. Use org.jruby.RubyClass#reifiedClass(Class) instead.

public void
setRubyClassAllocator(final Class<? extends IRubyObject>
The class from which to grab a standard Ruby constructor
clazz
)

Set a reflective allocator that calls the "standard" Ruby object constructor (Ruby, RubyClass) on the given class.

public void
setRubyStaticAllocator(final Class<?>
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.

clazz
)

Set a reflective allocator that calls the "standard" Ruby object constructor (Ruby, RubyClass) on the given class via a static __allocate__ method intermediate.

private static boolean
private static boolean
public void
smartDump(MarshalStream
The stream to which to marshal the data
stream
,
IRubyObject
The object whose data should be marshaled
target
)
Deprecated for removal since 10.0.

Marshal the given object to the marshaling stream, being "smart" and caching how to do that marshaling.

public void
public IRubyObject

Returns:

The fully-populated target object
smartLoadNewUser
(IRubyObject
The blank target object into which marshal_load will deserialize the given data
target
,
IRubyObject
The marshaled data
data
)

Load marshaled data into a blank target object using marshal_load, being "smart" and caching the mechanism for invoking marshal_load.

public IRubyObject

Returns:

The fully-populated target object
smartLoadOldUser
(IRubyObject
The marshaled data, to be reconstituted into an object by _load
data
)

Load marshaled data into a blank target object using _load, being "smart" and caching the mechanism for invoking _load.

public IRubyObject
public final Collection<RubyClass>
public Collection<RubyClass>
subclasses(boolean includeDescendants)

public IRubyObject
superclass(ThreadContext context)

Return the real super class of this class.

public <T> T
toJava(Class<T>
The target type to which the object should be converted.
target
)

Overrides org.jruby.RubyModule.toJava.

Implements org.jruby.runtime.builtin.IRubyObject.toJava.

Convert the object to the specified Java class, if possible.

pack-priv RubyClass
toSingletonClass(RubyBasicObject target)
Deprecated since 10.0.

pack-priv RubyClass
public final Object
unmarshal(UnmarshalStream unmarshalStream)
Deprecated for removal since 10.0.

public final Object
public static RubyClass
unmarshalFrom(UnmarshalStream input)

Hides org.jruby.RubyModule.unmarshalFrom.

Deprecated for removal since 10.0.

public static RubyClass
Inherited from org.jruby.RubyModule:
_module_function_private_protected_publicaddClassProvideraddIncludingHierarchyaddMethodaddMethodaddMethodInternaladdMethodInternaladdMethodSymbolsaddMethodSymbolsaddModuleFunctionaddReadAttributeaddReadWriteAttributeaddToCacheaddToCacheaddWriteAttributealias_methodaliasMethodancestorsancestorsanonymousMetaNameWithIdentifierappend_featuresappend_featuresattrattr_accessorattr_accessorattr_readerattr_readerattr_writerautoloadautoload_pautoload_pautoloadingValueautoloadingValuebaseNamecheckForCyclicPrependcheckFrozencheckValidBindTargetFromclass_variable_defined_pclass_variable_getclass_variable_getclass_variable_get19class_variable_setclass_variable_setclass_variable_set19class_variablesclass_variablesclassIndexcloneMethodscloneMethodsconst_addedconst_defined_pconst_defined_pconst_getconst_getconst_getconst_getconst_get_1_9const_get_2_0const_missingconst_setconst_setconst_source_locationconstantEntryFetchconstantsconstantsconstantsCommonconstantsCommonconstantTableContainsconstantTableFetchconstantTableRemoveconstantTableStoreconstantTableStoreconstantTableStoreconstantTableStoreconstDefinedconstDefinedconstDefinedAtconstDefinedAtconstDefinedFromconstDefinedFromdefine_methoddefine_methoddefine_methoddefineAliasdefineAliasdefineAliasesdefineAnnotatedConstantdefineAnnotatedConstantsdefineAnnotatedMethoddefineAnnotatedMethoddefineAnnotatedMethoddefineAnnotatedMethoddefineAnnotatedMethoddefineAnnotatedMethodsdefineAnnotatedMethodsIndividuallydefineAutoloaddefineAutoloaddefineClassUnderdefineClassUnderdefineClassUnderdefineConstantdefineConstantdefineConstantdefineConstantBootstrapdefineConstantsdefineConstantsFromdefineMethodFromBlockdefineMethodFromCallabledefineMethodsdefineModuleUnderdefineModuleUnderdefineOrGetClassUnderdefineOrGetClassUnderdefineOrGetClassUnderdefineOrGetClassUnderdefineOrGetModuleUnderdefineOrGetModuleUnderdefineOrGetModuleUnderdeleteClassVariabledeleteConstantdeleteConstantdeprecate_constantdeprecate_constantdeprecateConstantdeprecateConstantdiscoverInstanceVariablesdoIncludeModuledoPrependModuleensureClassVariablesSettableensureConstantsSettableequalsexportMethodextend_objectextend_objectextendedfastFetchClassVariablefastFetchConstantfastGetClassfastGetClassVarfastGetConstantfastGetConstantfastGetConstantAtfastGetConstantFromfastGetConstantFromConstMissingfastGetConstantFromNoConstMissingfastHasClassVariablefastHasConstantfastIsClassVarDefinedfastIsConstantDefinedfastSetClassVarfastSetConstantfastStoreClassVariablefastStoreConstantfetchClassVariablefetchConstantfetchConstantfetchConstantfetchConstantfetchConstantEntryfetchConstantEntryfindImplementerfindModuleInAncestorsfinishAutoloadfinishAutoloadfinishCreateModuleClassfinishModuleClassfinishRefinementClassfreezegetAncestorListgetAutoloadConstantgetAutoloadConstantgetAutoloadConstantgetAutoloadConstantgetAutoloadFilegetAutoloadMapgetAutoloadMapForWritegetBaseNamegetCachedMethodsgetCacheProxygetCacheTokengetClassgetClassgetClassIndexgetClassVargetClassVargetClassVargetClassVargetClassVariableNameListgetClassVariablesgetClassVariablesForReadgetClassVarQuietgetConstantgetConstantgetConstantgetConstantgetConstantgetConstantgetConstantAtgetConstantAtgetConstantAtgetConstantAtgetConstantAtSpecialgetConstantAtSpecialgetConstantFromgetConstantFromgetConstantFromConstMissinggetConstantFromConstMissinggetConstantFromNoConstMissinggetConstantFromNoConstMissinggetConstantFromNoConstMissinggetConstantFromNoConstMissinggetConstantMapgetConstantMapForWritegetConstantNamesgetConstantNamesgetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissinggetConstantNoConstMissingSkipAutoloadgetConstantNoConstMissingSkipAutoloadgetConstantNoConstMissingSKipAutoloadgetConstantSourceLocationgetConstantSourceLocationgetConstantWithAutoloadgetConstantWithAutoloadgetDelegategetGenerationgetGenerationObjectgetIdTestgetIncludingHierarchiesForWritegetInvalidatorgetJavaProxygetMethodLocationgetMethodsgetMethodsForWritegetModulegetModulegetNamegetNamegetNonIncludedClassgetOrigingetParentgetRefinementsgetRefinementsForWritegetRefinementStoreForWritegetSimpleNamegetSimpleNamegetStoredConstantListgetStoredConstantNameListgetSuperClasshasAncestorhasAutoloadhasClassVariablehasConstanthashhashCodehasInternalModuleVariablehasModuleInHierarchyhasModuleInPrependshasPrependsincludeincludeincludeincludeinclude_pincludedincluded_modulesincludeModuleincludeModuleinitializeinstance_methodinstance_methodinstance_methodsinstance_methodsinstance_methods19instanceMethodsinstanceMethodsinstanceMethodsinvalidateCacheDescendantsinvalidateConstantCacheinvalidateConstantCacheinvalidateConstantCachesinvalidateCoreClassesisClassVarDefinedisConstantDefinedisConstantDefinedisConstantDefinedisIncludedisIncludedIntoRefinementisInstanceisKindOfModuleisMethodBoundisMethodBoundisMethodBuiltinisPrependedisRefinementisSameisSameOriginisSynchronizedisValidConstantNameisValidConstantPathkindOfloadPopulatorFormarshalTomarshalTomethod_addedmethod_defined_pmethod_defined_pmethod_removedmethod_undefinedmethodAddedmixmixmodule_evalmodule_evalmodule_evalmodule_evalmodule_evalmodule_execmodule_execmodule_functionnamenameneedsImplementernestingnewActivatedRefinementsMapnewIdTestnewIncludeClassnewMethodnewMethodnewMethodnewMethodnewMethodnewMethodnewMethodnewModulenewModulenewModulenewModulenewModuleBootstrapnewRefinementsMapnewRefinementsMapop_cmpop_cmpop_eqqop_equalop_geop_geop_gtop_gtop_leop_leop_ltop_ltpopulateInstanceMethodNamesprependprepend_featuresprepend_featuresprependedprependModuleprependModuleprependModuleprivate_class_methodprivate_class_methodprivate_constantprivate_constantprivate_instance_methodsprivate_instance_methodsprivate_method_definedprivate_method_definedprotected_instance_methodsprotected_instance_methodsprotected_method_definedprotected_method_definedpublic_class_methodpublic_class_methodpublic_constantpublic_constantpublic_instance_methodpublic_instance_methodpublic_instance_methodspublic_instance_methodspublic_instance_methods19public_method_definedpublic_method_definedpublicConstDefinedFrompublicConstDefinedFromputAliasputAliasputAliasputAliasputMethodputMethodrbPrivaterbProtectedrbPublicrefinerefined_classrefinementsremove_class_variableremove_class_variable19remove_constremove_methodremoveClassProviderremoveClassVariableremoveClassVariableremoveMethodresolveRefinedMethodresolveUndefConstantresolveUndefConstantrespondsToMethodrespondsToMethodretrieveMethodruby2_keywordsrubyBaseNamerubyBaseNamerubyNamerubyNamesearchAncestorsearchInternalModuleVariablesearchMethodsearchMethodCommonsearchMethodEntryInnersearchMethodInnersearchMethodLateralsearchWithCachesearchWithCachesearchWithRefinementsset_temporary_namesetBaseNamesetCacheProxysetClassIndexsetClassVarsetClassVarsetConstantsetConstantsetConstantsetConstantsetConstantsetConstantsetConstantQuietsetConstantQuietsetConstantVisibilitysetConstantVisibilitysetInternalModuleVariablesetJavaProxysetMethodLocationsetMethodVisibilitysetMethodVisibilitysetParentsetRefinementssetSuperClasssingleton_class_pstoreClassVariablestoreClassVariablestoreConstantstoreConstantstoreConstantstoreConstantstoreConstantsuperClasssuperClasssymbolNamesymbolNamesyncClassVariablessyncConstantstaptargettestModuleMatchto_sto_sundefundef_methodundefined_instance_methodundefinedMethodMessageundefineMethodundefMethodsupdateGenerationused_modulesused_refinementsusingusingModuleusingTemporaryNamevalidateClassVariablevalidateClassVariablevalidateClassVariablevalidateClassVariablevalidateConstantvalidateConstantvalidateConstant