| Modifier and Type | Class and Description |
|---|---|
| private abstract class | |
| pack-priv static interface | |
| public class | |
| public static enum | |
| private static class | RubyClass.
A tuple representing the mechanism by which objects should be marshaled. |
| private static enum | RubyClass.
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 |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private ObjectAllocator | |
| private int | |
| private volatile CallSite[] | |
| private RubyClass. | 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 | |
| private static final PositionAware | |
| pack-priv static RubyClass. | |
| private CallSite[] | |
| private JavaClassConfiguration | |
| private static final Logger | LOG
Hides org. |
| protected ObjectMarshal | |
| private final RubyClass | realClass
The "real" class, used by includes and singletons to locate the actual type of the object |
| private Class | |
| private Boolean | |
| protected final Ruby | |
| private volatile RubyClass. | |
| private static final AtomicReferenceFieldUpdater | |
| private VariableTableManager | variableTableManager
Variable table manager for this class |
| private static final AtomicReferenceFieldUpdater | |
| private volatile RubyClass. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| pack-priv void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public void | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public <T extends RubyClass> T | Returns: itself for a composable APIto use allocator)Define an allocator for this class (usually this is part of
|
| public IRubyObject | |
| public void | becomeSynchronized()
Overrides org. make this class and all subclasses sync |
| pack-priv static boolean | checkFuncallCallable(ThreadContext context, DynamicMethod method, CallType callType, IRubyObject self)
|
| private IRubyObject | |
| private IRubyObject | checkFuncallDefault(ThreadContext context, IRubyObject self, JavaSites.
|
| 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 | checkFuncallMissing(ThreadContext context, RubyClass klass, IRubyObject self, String method, IRubyObject... args)
|
| 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 | |
| public static void | |
| public boolean | |
| private void | |
| private void | |
| public static RubyClass | Returns: a half-baked meta class for objectwe 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 | |
| public static void | |
| private void | |
| public static void | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| 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 | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
|
| 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.
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.
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 | |
| public ObjectAllocator | |
| public CallSite | |
| public CallSite[] | |
| public Map | |
| public synchronized JavaClassConfiguration | |
| public final Ruby | |
| public CallSite[] | |
| public VariableAccessorField | |
| public VariableAccessor | |
| public VariableAccessor | |
| public Map | |
| public Map | |
| public Boolean | Returns: Null if not reified, true if a concrete extension class, and false if a ruby classIf the current class is reified (null otherwise) and if it extends java |
| public final ObjectMarshal | |
| public Map | |
| public Map | |
| public ClassIndex | getNativeClassIndex()
Overrides org. Implements org. This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
| public VariableAccessorField | |
| public VariableAccessor | |
| public VariableAccessor | |
| public VariableAccessorField | |
| private static RubyClass. | |
| private static RubyClass. | |
| public Map | |
| public PositionAware | |
| public final RubyClass | Returns: the nearest non-singleton non-include classGet 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 classOverrides org. Equivalent to |
| public Class | |
| public Class | |
| private String | |
| public Class | |
| public RubyClass. | |
| private RubyClass. | |
| public VariableAccessor | |
| public VariableAccessor | |
| public Map | |
| public String[] | Returns: a copy of the array of known instance variable namesGet an array of all the known instance variable names. |
| public Map | |
| public VariableTableManager | |
| public int | |
| public int | |
| private RubyClass. | |
| private RubyClass. | |
| public boolean | |
| public void | |
| public IRubyObject | |
| public IRubyObject | initialize(ThreadContext context, Block block)
Overrides org. rb_class_initialize |
| public IRubyObject | |
| public IRubyObject | initialize_copy(ThreadContext
the thread context context, IRubyObject the original original)Overrides org. rb_class_init_copy |
| private RubyClass | |
| public void | invalidateCacheDescendants(ThreadContext context)
Overrides org. 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. Implements org. 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. Implements org. 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 reificationIf reified from java (out param) java)Whether this class can be reified into a Java class. |
| public boolean | |
| private boolean | |
| private void | |
| public final void | |
| public final void | |
| public static void | |
| public static void | |
| public <T extends RubyClass> T | Returns: itself for composable APIthe marshaller marshal)Set what marshaller we use or generally use this to specify the typw cannot Marshal data. |
| public static Class | |
| public static RubyClass | |
| public static RubyClass | |
| 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.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. | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | newInstance(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
|
| public IRubyObject | |
| private RubyModule. | |
| private static RaiseException | |
| pack-priv static boolean | notVisibleAndNotMethodMissing(DynamicMethod method, String name, IRubyObject caller, CallType callType)
|
| private static void | |
| private static boolean | rbMethodCallStatus(ThreadContext context, DynamicMethod method, CallType callType, IRubyObject self)
|
| public <T extends RubyClass> T | Returns: itself for composable APIthe java type to use reifiedClass)Sets reified class to use. |
| public Class | |
| public final void | |
| public final void | |
| public final void | |
| public synchronized void | |
| public void | |
| public void | |
| public void | |
| 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. 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. instead.
|
| public void | setReifiedClass(Class<? extends IRubyObject> reifiedClass)
Deprecated
since 10.0. Use
org. 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. clazz)Note Used with `jrubyc --java` generated (interoperability) class files. Note Used with new concrete extension. 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 objectThe 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 objectThe 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 | |
| public Collection | |
| public IRubyObject | |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |
| pack-priv RubyClass | |
| pack-priv RubyClass | |
| public final Object | |
| public final Object | |
| public static RubyClass | unmarshalFrom(UnmarshalStream input)
Hides org.
Deprecated
for removal since 10.0.
|
| public static RubyClass | unmarshalFrom(ThreadContext context, RubyInputStream in, MarshalLoader input)
Hides org.
|