org.jruby.runtime.builtin.IRubyObject . Every Ruby object in JRuby
is represented by something that is an instance of RubyBasicObject. In
the core class implementations, this means doing a subclass
that extends RubyBasicObject. In other cases it means using a simple
RubyBasicObject instance and its data fields to store specific
information about the Ruby object.
Some care has been taken to make the implementation be as
monomorphic as possible, so that the Java Hotspot engine can
improve performance of it. That is the reason for several patterns
that might seem odd in this class.
The IRubyObject interface used to have lots of methods for
different things, but these have now mostly been refactored into
several interfaces that gives access to that specific part of the
object. This gives us the possibility to switch out that subsystem
without changing interfaces again. For example, instance variable
and internal variables are handled this way, but the implementation
in RubyObject only returns "this" in getInstanceVariables() and
getInternalVariables().
Methods that are implemented here, such as "initialize" should be implemented
with care; reification of Ruby classes into Java classes can produce
conflicting method names in rare cases. See JRUBY-5906 for an example.
| Modifier and Type | Class and Description |
|---|---|
| public static class | RubyBasicObject.
Class that keeps track of the finalizers for the object under operation. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final ObjectAllocator | BASICOBJECT_ALLOCATOR
Default allocator instance for all Ruby objects. |
| public static final int | COMPARE_BY_IDENTITY_F
Deprecated
|
| public static final String | ERR_INSECURE_SET_INST_VAR
The error message used when some one tries to modify an instance variable in a high security setting. |
| public static final int | |
| public static final int | FL_USHIFT
Deprecated
|
| protected int | flags
object flags |
| public static final int | |
| public static final int | IS_OVERLAID_F
Deprecated
|
| protected transient RubyClass | metaClass
The class of this object |
| public static final IRubyObject | NEVER
A value that is used as a null sentinel in among other places the RubyArray implementation. |
| public static final int | NIL_F
This flag is a bit funny. |
| public static final int | REFINED_MODULE_F
Deprecated
|
| public static final long | STAMP_OFFSET
Deprecated
|
| public static final int | TAINTED_F
Deprecated
|
| public static final IRubyObject | UNDEF
A value that specifies an undefined value. |
| public static final int | USER0_F
Deprecated
|
| public static final int | USER1_F
Deprecated
|
| public static final int | USER2_F
Deprecated
|
| public static final int | USER3_F
Deprecated
|
| public static final int | USER4_F
Deprecated
|
| public static final int | USER5_F
Deprecated
|
| public static final int | USER6_F
Deprecated
|
| public static final int | USER7_F
Deprecated
|
| public static final int | USER8_F
Deprecated
|
| public static final int | USER9_F
Deprecated
|
| public static final int | USERA_F
Deprecated
|
| public static final long | VAR_TABLE_OFFSET
Deprecated
|
| public transient Object[] | varTable
variable table, lazily allocated as needed (if needed) |
| public transient volatile int | varTableStamp
locking stamp for Unsafe ops updating the vartable |
| Access | Constructor and Description |
|---|---|
| private | |
| public | RubyBasicObject(Ruby
the runtime runtime, RubyClass the meta class metaClass)Standard path for object creation. |
| public | |
| protected | RubyBasicObject(Ruby
the runtime runtime, RubyClass the metaclass metaClass, boolean should object space be enabled useObjectSpace)Path for objects who want to decide whether they don't want to be in ObjectSpace even when it is on. |
| protected | RubyBasicObject(Ruby runtime, RubyClass metaClass, boolean useObjectSpace, boolean canBeTainted)
Deprecated
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addFinalizer(IRubyObject f)
Implements org.
Deprecated
|
| public IRubyObject | addFinalizer(ThreadContext context, IRubyObject f)
Overrides default org. Adds the specified object as a finalizer for this object. |
| public IRubyObject | anyToString()
Implements org. Internal method that helps to convert any object into the format of a class name and a hex string inside of #<>. |
| public String | Returns: a (Java) stringImplements org. rb_to_id Will try to convert this object to a String using the Ruby "to_str" if the object isn't already a String. |
| public RubyString | asString()
Implements org. rb_obj_as_string First converts this object into a String using the "to_s" method and returns it. |
| public final IRubyObject | callMethod(ThreadContext context, String name)
Implements org. Will invoke a named method with no arguments and no block. |
| public final IRubyObject | callMethod(ThreadContext context, String name, IRubyObject arg)
Implements org. Will invoke a named method with one argument and no block with functional invocation. |
| public final IRubyObject | callMethod(ThreadContext context, String name, IRubyObject[] args)
Implements org. Will invoke a named method with the supplied arguments and no block with functional invocation. |
| public final IRubyObject | |
| public final IRubyObject | |
| public final IRubyObject | |
| public final IRubyObject | callMethod(ThreadContext context, String name, IRubyObject[] args, Block block)
Implements org. Will invoke a named method with the supplied arguments and supplied block with functional invocation. |
| public final IRubyObject | callMethod(ThreadContext context, int methodIndex, String name)
Implements org.
Deprecated
|
| public final IRubyObject | callMethod(ThreadContext context, int methodIndex, String name, IRubyObject arg)
Implements org.
Deprecated
|
| public IRubyObject | callSuper(ThreadContext context, IRubyObject[] args, Block block)
Implements org.
Deprecated
|
| public IRubyObject | checkArrayType()
Implements org. rb_check_array_type Returns the result of trying to convert this object to an Array with "to_ary". |
| public final IRubyObject | checkCallMethod(ThreadContext context, String name)
Implements org. Will invoke a named method with no arguments and no block if that method or a custom method missing exists. |
| public final IRubyObject | checkCallMethod(ThreadContext context, JavaSites.
Implements org. Will invoke a named method with no arguments and no block if that method or a custom method missing exists. |
| public void | |
| public IRubyObject | checkStringType()
Implements org. rb_check_string_type Tries to return a coerced string representation of this object, using "to_str". |
| protected RubyBasicObject | |
| public int | Returns: 0 if equal, < 0 if this is less than other, > 0 if this is greater than otheranother IRubyObject other)Implements java. Compares this Ruby object with another. |
| public RubyArray | Returns: array representation of thisImplements org. Tries to convert this object to a Ruby Array using the "to_ary" method. |
| public RubyFloat | Returns: float representation of thisImplements org. Tries to convert this object to a Ruby Float using the "to_f" method. |
| public RubyHash | Returns: hash representation of thisImplements org. Tries to convert this object to a Ruby Hash using the "to_hash" method. |
| public RubyInteger | Returns: an integer representation of thisImplements org. Tries to convert this object to a Ruby Integer using the "to_int" method. |
| public RubyInteger | Returns: an integer representation of thisconversion method to use e.g. "to_i" convertMethod)Implements org. Tries to convert this object to a Ruby Integer using the supplied conversion method. |
| public RubyInteger | convertToInteger(int
index methodIndex, String conversion method name convertMethod)Overrides default org.
Deprecated
convert this object to an integer |
| public RubyString | Returns: a string representation of thisImplements org. Tries to convert this object to a Ruby String using the "to_str" method. |
| public void | copyInstanceVariablesInto(final InstanceVariables
the thing to copy into other)Implements org. Copies all instance variables from the given object into the receiver |
| public void | copySpecialInstanceVariables(IRubyObject clone)
Implements org. Lots of MRI objects keep their state in non-lookupable ivars (e:g. |
| public Object | dataGetStruct()
Implements org. Our version of Data_Get_Struct. |
| public synchronized Object | dataGetStructChecked()
Implements org.
Deprecated
|
| public void | dataWrapStruct(Object
the object to wrap obj)Implements org. Our version of Data_Wrap_Struct. |
| public RubyString | |
| pack-priv final <T> T | |
| public IRubyObject | |
| public IRubyObject | |
| protected void | |
| protected RubyBasicObject | |
| public void | ensureInstanceVariablesSettable()
Makes sure that instance variables can be set on this object, including information about whether this object is frozen. |
| public boolean | Returns: Will by default just call the Ruby method "eql?"Implements org. method used for Hash key comparison (specialized for String, Symbol and Fixnum) |
| public IRubyObject | |
| public IRubyObject | |
| protected static boolean | Returns: are they equalthe thread context context, final IRubyObject first comparator that, final IRubyObject the second comparator other)Helper method for checking equality, first using Java identity equality, and then calling the "eql?" method. |
| public IRubyObject | Returns: are they equal?the thread context context, IRubyObject to compare with other)rb_obj_equal Will use Java identity equality. |
| protected static boolean | Returns: are they equalthe thread context context, final IRubyObject first comparator that, final IRubyObject the second comparator other)Helper method for checking equality, first using Java identity equality, and then calling the "==" method. |
| public boolean | Returns: true if equalsobject to compare other)Overrides java. This method is just a wrapper around the Ruby "==" method, provided so that RubyObjects can be used as keys in the Java HashMap object underlying RubyHash. |
| public IRubyObject | evalUnder(final ThreadContext context, RubyModule under, RubyString src, String file, int line, EvalType evalType)
|
| public IRubyObject | Returns: itselfto use as modules to extend args)rb_obj_extend call-seq: obj.extend(module, ...) => obj Adds to _obj_ the instance methods from each module given as a parameter. |
| public IRubyObject | fastGetInstanceVariable(String internedName)
Implements org.
Deprecated
|
| public Object | fastGetInternalVariable(String internedName)
Implements org.
Deprecated
|
| public boolean | fastHasInstanceVariable(String internedName)
Implements org.
Deprecated
|
| public boolean | fastHasInternalVariable(String internedName)
Implements org.
Deprecated
|
| public IRubyObject | fastSetInstanceVariable(String internedName, IRubyObject value)
Implements org.
Deprecated
|
| public void | fastSetInternalVariable(String internedName, Object value)
Implements org.
Deprecated
|
| public static void | finishBasicObjectClass(ThreadContext
the thread context context, RubyClass reference to BasicObject BasicObject)Will create the Ruby class BasicObject in the runtime specified. |
| public void | forEachInstanceVariable(BiConsumer<String, IRubyObject>
a consumer for each variable accessor)Overrides default org. Iterate over all instance variable name/value pairs for this object. |
| public void | forEachInstanceVariableName(Consumer<String>
consumer for the names consumer)Overrides default org. Iterate over all instance variable names for this object. |
| public IRubyObject | |
| public RubyBoolean | |
| public final ThreadContext | |
| public final Object | |
| public final boolean | Returns: true if the flag is set, false otherwisethe flag to get flag)Get the value of a custom flag on this object. |
| protected RubyModule | |
| protected RubyModule | |
| public IRubyObject | getInstanceVariable(String
the name of an instance variable name)Implements org. Returns the named instance variable if present, else null. |
| public List | getInstanceVariableList()
Implements org. Gets a list of all variables in this object. |
| public List | getInstanceVariableNameList()
Implements org. Gets a name list of all variables in this object. |
| public InstanceVariables | getInstanceVariables()
Implements org. Dummy method to avoid a cast, and to avoid polluting the IRubyObject interface with all the instance variable management methods. |
| public Object | getInternalVariable(String
the name of an internal variable name)Implements org. Returns the named internal variable if present, else null. |
| public InternalVariables | getInternalVariables()
Implements org. Dummy method to avoid a cast, and to avoid polluting the IRubyObject interface with all the instance variable management methods. |
| public Class | Returns: the true Java class of this (Ruby) objectImplements org. Will return the Java interface that most closely can represent this object, when working through Java integration translations. |
| public List | getMarshalVariableList()
Overrides default org. all marshable values |
| public final RubyClass | getMetaClass()
Implements org. if exist return the meta-class else return the type of the object. |
| public static RubyClass | |
| public ClassIndex | getNativeClassIndex()
Implements org. Return the ClassIndex for the native type this object was constructed from. |
| public final Object | |
| public final int | getNativeTypeIndex()
Implements org.
Deprecated
Return the ClassIndex value for the native type this object was constructed from. |
| protected long | Returns: object idThe logic here is to use the special objectId accessor slot from the parent as a lazy store for an object symbol. |
| public final Ruby | Returns: current runtimeImplements org. Will return the runtime that this object is associated with. |
| public RubyClass | getSingletonClass()
Implements org. Retrieve |
| protected RubyClass | |
| protected RubyClass | |
| protected RubyClass | Returns: either a real class, or a clone of the current singleton classthe thread context context, RubyBasicObject object ot attach attach)rb_singleton_class_clone Will make sure that if the current objects class is a singleton, it will get cloned. |
| public final RubyClass | |
| public Object | |
| public int | getVariableCount()
Implements org.
Deprecated
how many variables? |
| public List | getVariableList()
Implements org. Gets a list of all variables in this object. |
| public List | getVariableNameList()
Implements org. Gets a name list of all variables in this object. |
| public RubyFixnum | Returns: hash value
Deprecated
since 10.0. Use
RubyBasicObject#hash(ThreadContext) instead.
Will return the hash code of this object. |
| public RubyFixnum | Returns: the hash valuethe current thread context context)Will return the hash code of this object. |
| public int | hashCode()
Overrides java. Override the Object#hashCode method to make sure that the Ruby hash is actually used as the hashcode for Ruby objects. |
| public final IRubyObject | |
| public boolean | hasInstanceVariable(String
the name of an instance variable name)Implements org. Returns true if object has the named instance variable. |
| protected boolean | Returns: true if there are set instance variables, false otherwiseCheck whether this object has any *set* instance variables unrelated to object_id, FFI, and ObjectSpace (which also use hidden ivar slots). |
| public boolean | hasInternalVariable(String
the name of an internal variable name)Implements org. Returns true if object has the named internal variable. |
| public boolean | hasVariables()
Implements org. Returns true if object has any variables |
| public IRubyObject | id()
Implements org. rb_obj_id Return the internal id of an object. |
| public IRubyObject | |
| pack-priv final RubyBasicObject | |
| pack-priv final RubyBasicObject | |
| private static void | initCopy(ThreadContext context, IRubyObject clone, IRubyObject original)
init_copy Initializes a copy with variable and special instance variable information, and then call the initialize_copy Ruby method. |
| public IRubyObject | |
| public IRubyObject | Returns: a copyobject original)
Deprecated
since 10.0. Use
org. instead.
|
| public IRubyObject | Returns: a copy unless the same thingthe thread context context, IRubyObject the original original)Initializes this object as a copy of the original, that is the parameter to this object. |
| public IRubyObject | inspect()
Implements org.
Deprecated
since 10.0.
RubyMethod inspect. |
| public IRubyObject | inspect(ThreadContext context)
Overrides default org. Returns a string containing a human-readable representation of obj. |
| protected int | Returns: The identity hashcode of this objectFor most objects, the hash used in the default #inspect is just the identity hashcode of the actual object. |
| private RubyString | inspectObj(final Ruby runtime, RubyString part)
inspect_obj The internal helper method that takes care of the part of the inspection that inspects instance variables. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | instance_eval(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
|
| public IRubyObject | |
| public IRubyObject | Returns: the resultthe thread context context, IRubyObject[] the args args, Block block block)rb_obj_instance_exec call-seq: obj.instance_exec(arg...) {|var...| block } => obj Executes the given block within the context of the receiver (_obj_). |
| public RubyBoolean | Returns: true if this is instance of typethe thread context context, IRubyObject the type type)rb_obj_is_instance_of
call-seq:
obj.instance_of?(class) => true or false
Returns |
| public IRubyObject | Returns: true if definedthe thread context context, IRubyObject of ivar name)rb_obj_ivar_defined
call-seq:
obj.instance_variable_defined?(symbol) => true or false
Returns |
| public IRubyObject | Returns: value of ivarthe thread context context, IRubyObject of ivar name)rb_obj_ivar_get call-seq: obj.instance_variable_get(symbol) => obj Returns the value of the given instance variable, or nil if the instance variable is not set. |
| public IRubyObject | Returns: value of old set ivarof ivar name, IRubyObject to set value)rb_obj_ivar_set call-seq: obj.instance_variable_set(symbol, obj) => obj Sets the instance variable names by symbol to object, thereby frustrating the efforts of the class's author to attempt to provide proper encapsulation. |
| public RubyArray | Returns: list of ivarsthe thread context context)rb_obj_instance_variables call-seq: obj.instance_variables => array Returns an array of instance variable names for the receiver. |
| public boolean | |
| public boolean | isClass()
Implements org. Specifically polymorphic method that are meant to be overridden by classes to specify that they are classes in an easy way. |
| public final boolean | |
| public boolean | Returns: true if this object is frozen, false otherwiseImplements org. Is this value frozen or not? |
| public boolean | isImmediate()
Implements org. Is object immediate (def: Fixnum, Symbol, true, false, nil?). |
| public boolean | isModule()
Implements org. Specifically polymorphic method that are meant to be overridden by modules to specify that they are modules in an easy way. |
| public final boolean | |
| public boolean | isSpecialConst()
Implements org. Is this a special constant |
| public boolean | |
| public boolean | |
| public final boolean | Returns: true it truthyImplements org. Is this value a truthy value or not? |
| public boolean | isUntrusted()
Implements org.
Deprecated
RubyMethod isUntrusted. |
| public RubyBoolean | Returns: true if this is kind of typethe thread context context, IRubyObject the type type)rb_obj_is_kind_of
call-seq:
obj.is_a?(class) => true or false
obj.kind_of?(class) => true or false
Returns |
| public RubyClass | |
| public RubyClass | Returns: the new meta classthe thread context context, RubyClass the super class superClass)rb_make_metaclass Will create a new meta class, insert this in the chain of classes for this specific object, and return the generated meta class. |
| public RubyClass | Returns: the new metaclassthe runtime runtime, RubyClass of the metaclass superClass, RubyClass a reference to Ruby Class Class)This will create a new metaclass. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | Returns: method instancethe thread context context, IRubyObject the name of the method name, StaticScope the static scope for the caller method refinedScope)Like |
| public static IRubyObject | |
| public IRubyObject | Returns: methodsthe thread context context, IRubyObject... include ancestors args)rb_obj_methods call-seq: obj.methods => array Returns a list of the names of methods publicly accessible in obj. |
| public final IRubyObject | |
| pack-priv final IRubyObject | |
| public IRubyObject | |
| protected static int | |
| protected static int | |
| protected static boolean | |
| protected static void | |
| public IRubyObject | |
| public IRubyObject | op_eqq(ThreadContext context, IRubyObject other)
Implements org.
|
| public IRubyObject | op_equal(ThreadContext context, IRubyObject obj)
Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public IRubyObject | Returns: true if matches (always nil)the thread context context, IRubyObject arg arg)rb_obj_pattern_match
call-seq:
obj =~ other => nil
Pattern Match---Overridden by descendents (notably
|
| public IRubyObject | |
| public IRubyObject | Returns: false if this == other, true otherwisethread context context, IRubyObject other object other)The != method implemented for BasicObject. |
| public IRubyObject | Returns: true if they do not matchthe thread context context, IRubyObject arg arg)Invert the match operator. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| private RubyBasicObject | |
| public static IRubyObject | |
| private void | readObject(ObjectInputStream ois)
Deserialization proceeds as follows:
|
| pack-priv static void | |
| private IRubyObject | |
| public IRubyObject | Returns: value of removed ivarthe thread context context, IRubyObject of ivar name, Block the block (not used) block)rb_obj_remove_instance_variable call-seq: obj.remove_instance_variable(symbol) => obj Removes the named instance variable from obj, returning that variable's value. |
| public void | removeFinalizers()
Implements org. Remove all the finalizers for this object. |
| public IRubyObject | removeInstanceVariable(String
the name of the variable to remove name)Implements org. Removes the named instance variable, if present, returning its value. |
| public Object | removeInternalVariable(String
the name of the variable to remove name)Implements org. Removes the named internal variable, if present, returning its value. |
| public final RubyBoolean | |
| public final RubyBoolean | |
| pack-priv final RubyBoolean | |
| public final boolean | respondsTo(String
method name name)Implements org. Does this object respond to the specified message? |
| public final boolean | respondsToMissing(String
method name name)Implements org. Does this object respond to the specified message via "method_missing?" |
| public final boolean | respondsToMissing(String
method name name, boolean private? incPrivate)Implements org. Does this object respond to the specified message via "method_missing?" |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public final void | |
| public final void | setFlag(int
the actual flag to set or unset. flag, boolean if true, the flag will be set, if false, the flag will be unset. set)Sets or unsets a flag on this object. |
| public void | setFrozen(boolean
should this object be frozen? frozen)Implements org. Sets whether this object is frozen or not. |
| public IRubyObject | setInstanceVariable(String
the name of an instance variable name, IRubyObject the value to be set value)Implements org. rb_iv_set / rb_ivar_set |
| public void | setInternalVariable(String
the name of an internal variable name, Object the value to be set value)Implements org. Sets the named internal variable to the specified value. |
| public void | setMetaClass(RubyClass
the meta class to set metaClass)Makes it possible to change the metaclass of an object. |
| public final void | |
| public void | |
| public void | setUntrusted(boolean
boolean untrusted)Implements org.
Deprecated
RubyMethod setUntrusted. |
| private Block | |
| public void | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | singleton_method_removed(ThreadContext context, IRubyObject recv, IRubyObject symbolId, Block block)
|
| public static IRubyObject | singleton_method_undefined(ThreadContext context, IRubyObject recv, IRubyObject symbolId, Block block)
|
| public RubyArray | |
| public RubyClass | Returns: the singleton of this typethe current thread context context)Overrides default org. Will either return the existing singleton class for this object, or create a new one and return that. |
| private static JavaSites. | |
| public IRubyObject | Returns: the resultthe thread context context, RubyModule module to yield in mod, Block to call block, EvalType type of evaal to perform evalType)specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. |
| public IRubyObject | Returns: the resultthe thread context context, RubyModule module to yield in mod, IRubyObject to pass to block arg, Block to call block, EvalType type of evaal to perform evalType)specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. |
| public IRubyObject | Returns: the resultthe thread context context, RubyModule module to yield in mod, IRubyObject to pass to block arg0, IRubyObject to pass to block arg1, Block to call block, EvalType type of evaal to perform evalType)specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. |
| public IRubyObject | Returns: the resultthe thread context context, RubyModule module to yield in mod, IRubyObject to pass to block arg0, IRubyObject to pass to block arg1, IRubyObject to pass to block arg2, Block to call block, EvalType type of evaal to perform evalType)specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. |
| public void | syncVariables(IRubyObject
the source object containing the variables to sync other)Implements org. Sync one this object's variables with other's - this is used to make rbClone work correctly. |
| public void | syncVariables(List<Variable<Object>>
the variables to be set for object variables)Implements org.
Deprecated
Sets object's variables to those in the supplied list, removing/replacing any previously defined variables. |
| public IRubyObject | |
| protected final void | |
| pack-priv IRubyObject | |
| public RubyBoolean | |
| protected final void | testFrozen(String
is frozen message)rb_frozen_class_p Helper to test whether this object is frozen, and if it is will throw an exception based on the message. |
| protected final void | testFrozen()
rb_frozen_class_p Helper to test whether this object is frozen, and if it is will throw an exception based on the message. |
| public RubyArray | |
| public RubyArray | |
| public IRubyObject | |
| public IRubyObject | |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Implements org. Convert the object to the specified Java class, if possible. |
| public IRubyObject | |
| public RubyClass | Returns: the real classrb_obj_class Returns the real class of this object, excluding any singleton/meta class in the inheritance chain. |
| public IRubyObject | |
| public IRubyObject | |
| public RubyBoolean | |
| private Object | |
| protected String | Returns: name it is validof instance variable name)
Deprecated
Checks if the name parameter represents a legal instance variable name, and otherwise throws a Ruby NameError |
| protected String | |
| protected String | |
| protected boolean | Returns: if contained in this objectto lookup name)Checks if the variable table contains a variable of the specified name. |
| protected boolean | |
| protected Object | |
| protected Object | |
| protected Object | Returns: the object or null if not foundto lookup name)Fetch an object from the variable table based on the name. |
| protected Object | Returns: the value removedto remove name)Removes the entry with the specified name from the variable table, and returning the removed value. |
| protected Object | Returns: valueto store in name, Object to store value)Store a value in the variable store under the specific name. |
| protected void | variableTableSync(List<Variable<Object>>
to to sync with vars)Synchronize the variable table with the argument. |
| private void | writeObject(ObjectOutputStream oos)
Serialization of a Ruby (basic) object involves three steps:
|
| protected IRubyObject | Returns: the resultthe thread context context, RubyModule module to yield in under, IRubyObject[] to use args, Block to call block, EvalType type of evaal to perform evalType)Will yield to the specific block changing the self to be the current object instead of the self that is part of the frame saved in the block frame. |
| protected IRubyObject | Returns: the resultthe thread context context, RubyModule module to yield in under, Block to call block, EvalType type of evaal to perform evalType)Will yield to the specific block changing the self to be the current object instead of the self that is part of the frame saved in the block frame. |