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