public static class BasicObjectStub.DummyInstanceVariables extends java.lang.Object implements InstanceVariables
| Constructor and Description |
|---|
DummyInstanceVariables(IRubyObject nil) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyInstanceVariablesInto(InstanceVariables other)
Copies all instance variables from the given object into the receiver
|
IRubyObject |
fastGetInstanceVariable(java.lang.String internedName) |
boolean |
fastHasInstanceVariable(java.lang.String internedName) |
IRubyObject |
fastSetInstanceVariable(java.lang.String internedName,
IRubyObject value) |
IRubyObject |
getInstanceVariable(java.lang.String name)
Returns the named instance variable if present, else null.
|
java.util.List<Variable<IRubyObject>> |
getInstanceVariableList() |
java.util.List<java.lang.String> |
getInstanceVariableNameList() |
boolean |
hasInstanceVariable(java.lang.String name)
Returns true if object has the named instance variable.
|
IRubyObject |
removeInstanceVariable(java.lang.String name)
Removes the named instance variable, if present, returning its
value.
|
IRubyObject |
setInstanceVariable(java.lang.String name,
IRubyObject value)
Sets the named instance variable to the specified value.
|
public DummyInstanceVariables(IRubyObject nil)
public boolean hasInstanceVariable(java.lang.String name)
InstanceVariableshasInstanceVariable in interface InstanceVariablesname - the name of an instance variablepublic boolean fastHasInstanceVariable(java.lang.String internedName)
fastHasInstanceVariable in interface InstanceVariablespublic IRubyObject getInstanceVariable(java.lang.String name)
InstanceVariablesgetInstanceVariable in interface InstanceVariablesname - the name of an instance variablepublic IRubyObject fastGetInstanceVariable(java.lang.String internedName)
fastGetInstanceVariable in interface InstanceVariablespublic IRubyObject setInstanceVariable(java.lang.String name, IRubyObject value)
InstanceVariablessetInstanceVariable in interface InstanceVariablesname - the name of an instance variablevalue - the value to be setpublic IRubyObject fastSetInstanceVariable(java.lang.String internedName, IRubyObject value)
fastSetInstanceVariable in interface InstanceVariablespublic IRubyObject removeInstanceVariable(java.lang.String name)
InstanceVariablesremoveInstanceVariable in interface InstanceVariablesname - the name of the variable to removepublic java.util.List<Variable<IRubyObject>> getInstanceVariableList()
getInstanceVariableList in interface InstanceVariablespublic java.util.List<java.lang.String> getInstanceVariableNameList()
getInstanceVariableNameList in interface InstanceVariablespublic void copyInstanceVariablesInto(InstanceVariables other)
InstanceVariablescopyInstanceVariablesInto in interface InstanceVariablesCopyright © 2001-2021 JRuby. All Rights Reserved.