public static class BasicObjectStub.DummyInstanceVariables extends Object implements InstanceVariables
Constructor and Description |
---|
BasicObjectStub.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(String internedName) |
boolean |
fastHasInstanceVariable(String internedName) |
IRubyObject |
fastSetInstanceVariable(String internedName,
IRubyObject value) |
IRubyObject |
getInstanceVariable(String name)
Returns the named instance variable if present, else null.
|
List<Variable<IRubyObject>> |
getInstanceVariableList() |
List<String> |
getInstanceVariableNameList() |
boolean |
hasInstanceVariable(String name)
Returns true if object has the named instance variable.
|
IRubyObject |
removeInstanceVariable(String name)
Removes the named instance variable, if present, returning its
value.
|
IRubyObject |
setInstanceVariable(String name,
IRubyObject value)
Sets the named instance variable to the specified value.
|
public BasicObjectStub.DummyInstanceVariables(IRubyObject nil)
public boolean hasInstanceVariable(String name)
InstanceVariables
hasInstanceVariable
in interface InstanceVariables
name
- the name of an instance variablepublic boolean fastHasInstanceVariable(String internedName)
fastHasInstanceVariable
in interface InstanceVariables
public IRubyObject getInstanceVariable(String name)
InstanceVariables
getInstanceVariable
in interface InstanceVariables
name
- the name of an instance variablepublic IRubyObject fastGetInstanceVariable(String internedName)
fastGetInstanceVariable
in interface InstanceVariables
public IRubyObject setInstanceVariable(String name, IRubyObject value)
InstanceVariables
setInstanceVariable
in interface InstanceVariables
name
- the name of an instance variablevalue
- the value to be setpublic IRubyObject fastSetInstanceVariable(String internedName, IRubyObject value)
fastSetInstanceVariable
in interface InstanceVariables
public IRubyObject removeInstanceVariable(String name)
InstanceVariables
removeInstanceVariable
in interface InstanceVariables
name
- the name of the variable to removepublic List<Variable<IRubyObject>> getInstanceVariableList()
getInstanceVariableList
in interface InstanceVariables
public List<String> getInstanceVariableNameList()
getInstanceVariableNameList
in interface InstanceVariables
public void copyInstanceVariablesInto(InstanceVariables other)
InstanceVariables
copyInstanceVariablesInto
in interface InstanceVariables
Copyright © 2001-2016 JRuby. All Rights Reserved.