public static class BasicObjectStub.DummyInstanceVariables extends java.lang.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(java.lang.String internedName)
Returns the named instance variable if present, else null.
|
boolean |
fastHasInstanceVariable(java.lang.String internedName)
Returns true if object has the named instance variable.
|
IRubyObject |
fastSetInstanceVariable(java.lang.String internedName,
IRubyObject value)
Sets the named instance variable to the specified 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 BasicObjectStub.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)
InstanceVariablesfastHasInstanceVariable in interface InstanceVariablesinternedName - the interned name of an instance variablepublic IRubyObject getInstanceVariable(java.lang.String name)
InstanceVariablesgetInstanceVariable in interface InstanceVariablesname - the name of an instance variablepublic IRubyObject fastGetInstanceVariable(java.lang.String internedName)
InstanceVariablesfastGetInstanceVariable in interface InstanceVariablesinternedName - the interned name of an instance variablepublic 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)
InstanceVariablesfastSetInstanceVariable in interface InstanceVariablesinternedName - the interned name of an instance variablevalue - the value to be setpublic 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 © 2002-2009 JRuby Team. All Rights Reserved.