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 TypeMethodDescriptionvoidCopies all instance variables from the given object into the receiverfastGetInstanceVariable(String internedName) booleanfastHasInstanceVariable(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 StringsbooleanhasInstanceVariable(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, waitMethods inherited from interface org.jruby.runtime.builtin.InstanceVariables
forEachInstanceVariable, forEachInstanceVariableName
-
Constructor Details
-
DummyInstanceVariables
-
-
Method Details
-
hasInstanceVariable
Description copied from interface:InstanceVariablesReturns true if object has the named instance variable.- Specified by:
hasInstanceVariablein interfaceInstanceVariables- Parameters:
name- the name of an instance variable- Returns:
- true if object has the named instance variable.
-
fastHasInstanceVariable
- Specified by:
fastHasInstanceVariablein interfaceInstanceVariables
-
getInstanceVariable
Description copied from interface:InstanceVariablesReturns the named instance variable if present, else null.- Specified by:
getInstanceVariablein interfaceInstanceVariables- Parameters:
name- the name of an instance variable- Returns:
- the named instance variable if present, else null
-
fastGetInstanceVariable
- Specified by:
fastGetInstanceVariablein interfaceInstanceVariables
-
setInstanceVariable
Description copied from interface:InstanceVariablesSets the named instance variable to the specified value.- Specified by:
setInstanceVariablein interfaceInstanceVariables- Parameters:
name- the name of an instance variablevalue- the value to be set- Returns:
- value
-
fastSetInstanceVariable
- Specified by:
fastSetInstanceVariablein interfaceInstanceVariables
-
removeInstanceVariable
Description copied from interface:InstanceVariablesRemoves the named instance variable, if present, returning its value.- Specified by:
removeInstanceVariablein 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:InstanceVariableslist of instance variables- Specified by:
getInstanceVariableListin interfaceInstanceVariables- Returns:
- instance variables
-
getInstanceVariableNameList
Description copied from interface:InstanceVariableslist of instance variables as Strings- Specified by:
getInstanceVariableNameListin interfaceInstanceVariables- Returns:
- instance variable names
-
copyInstanceVariablesInto
Description copied from interface:InstanceVariablesCopies all instance variables from the given object into the receiver- Specified by:
copyInstanceVariablesIntoin interfaceInstanceVariables- Parameters:
other- the thing to copy into
-