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)
InstanceVariables
hasInstanceVariable
in interface InstanceVariables
name
- the name of an instance variablepublic boolean fastHasInstanceVariable(java.lang.String internedName)
fastHasInstanceVariable
in interface InstanceVariables
public IRubyObject getInstanceVariable(java.lang.String name)
InstanceVariables
getInstanceVariable
in interface InstanceVariables
name
- the name of an instance variablepublic IRubyObject fastGetInstanceVariable(java.lang.String internedName)
fastGetInstanceVariable
in interface InstanceVariables
public IRubyObject setInstanceVariable(java.lang.String name, IRubyObject value)
InstanceVariables
setInstanceVariable
in interface InstanceVariables
name
- the name of an instance variablevalue
- the value to be setpublic IRubyObject fastSetInstanceVariable(java.lang.String internedName, IRubyObject value)
fastSetInstanceVariable
in interface InstanceVariables
public IRubyObject removeInstanceVariable(java.lang.String name)
InstanceVariables
removeInstanceVariable
in interface InstanceVariables
name
- the name of the variable to removepublic java.util.List<Variable<IRubyObject>> getInstanceVariableList()
getInstanceVariableList
in interface InstanceVariables
public java.util.List<java.lang.String> getInstanceVariableNameList()
getInstanceVariableNameList
in interface InstanceVariables
public void copyInstanceVariablesInto(InstanceVariables other)
InstanceVariables
copyInstanceVariablesInto
in interface InstanceVariables
Copyright © 2001-2018 JRuby. All Rights Reserved.