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
-
Field Summary
Fields -
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.booleanhasInstanceVariable(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.
-
Field Details
-
nil
-
-
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
-
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
- Specified by:
getInstanceVariableListin interfaceInstanceVariables- Returns:
- instance variables
-
getInstanceVariableNameList
- 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
-