Package org.jruby
Class BasicObjectStub.DummyInstanceVariables
java.lang.Object
org.jruby.BasicObjectStub.DummyInstanceVariables
- All Implemented Interfaces:
InstanceVariables
- Enclosing class:
BasicObjectStub
public static class BasicObjectStub.DummyInstanceVariables
extends Object
implements InstanceVariables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Copies all instance variables from the given object into the receiverfastGetInstanceVariable
(String internedName) boolean
fastHasInstanceVariable
(String internedName) fastSetInstanceVariable
(String internedName, IRubyObject value) getInstanceVariable
(String name) Returns the named instance variable if present, else null.list of instance variableslist of instance variables as Stringsboolean
hasInstanceVariable
(String name) Returns true if object has the named instance variable.removeInstanceVariable
(String name) Removes the named instance variable, if present, returning its value.setInstanceVariable
(String name, IRubyObject value) Sets the named instance variable to the specified value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jruby.runtime.builtin.InstanceVariables
forEachInstanceVariable, forEachInstanceVariableName
-
Constructor Details
-
DummyInstanceVariables
-
-
Method Details
-
hasInstanceVariable
Description copied from interface:InstanceVariables
Returns true if object has the named instance variable.- Specified by:
hasInstanceVariable
in interfaceInstanceVariables
- Parameters:
name
- the name of an instance variable- Returns:
- true if object has the named instance variable.
-
fastHasInstanceVariable
- Specified by:
fastHasInstanceVariable
in interfaceInstanceVariables
-
getInstanceVariable
Description copied from interface:InstanceVariables
Returns the named instance variable if present, else null.- Specified by:
getInstanceVariable
in interfaceInstanceVariables
- Parameters:
name
- the name of an instance variable- Returns:
- the named instance variable if present, else null
-
fastGetInstanceVariable
- Specified by:
fastGetInstanceVariable
in interfaceInstanceVariables
-
setInstanceVariable
Description copied from interface:InstanceVariables
Sets the named instance variable to the specified value.- Specified by:
setInstanceVariable
in interfaceInstanceVariables
- Parameters:
name
- the name of an instance variablevalue
- the value to be set- Returns:
- value
-
fastSetInstanceVariable
- Specified by:
fastSetInstanceVariable
in interfaceInstanceVariables
-
removeInstanceVariable
Description copied from interface:InstanceVariables
Removes the named instance variable, if present, returning its value.- Specified by:
removeInstanceVariable
in interfaceInstanceVariables
- Parameters:
name
- the name of the variable to remove- Returns:
- the value of the remove variable, if present; else null
-
getInstanceVariableList
Description copied from interface:InstanceVariables
list of instance variables- Specified by:
getInstanceVariableList
in interfaceInstanceVariables
- Returns:
- instance variables
-
getInstanceVariableNameList
Description copied from interface:InstanceVariables
list of instance variables as Strings- Specified by:
getInstanceVariableNameList
in interfaceInstanceVariables
- Returns:
- instance variable names
-
copyInstanceVariablesInto
Description copied from interface:InstanceVariables
Copies all instance variables from the given object into the receiver- Specified by:
copyInstanceVariablesInto
in interfaceInstanceVariables
- Parameters:
other
- the thing to copy into
-