|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InstanceVariables
Interface that represents the instance variable aspect of Ruby objects.
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean hasInstanceVariable(java.lang.String name)
name
- the name of an instance variable
boolean fastHasInstanceVariable(java.lang.String internedName)
internedName
- the interned name of an instance variable
IRubyObject getInstanceVariable(java.lang.String name)
name
- the name of an instance variable
IRubyObject fastGetInstanceVariable(java.lang.String internedName)
internedName
- the interned name of an instance variable
IRubyObject setInstanceVariable(java.lang.String name, IRubyObject value)
name
- the name of an instance variablevalue
- the value to be setIRubyObject fastSetInstanceVariable(java.lang.String internedName, IRubyObject value)
internedName
- the interned name of an instance variablevalue
- the value to be setIRubyObject removeInstanceVariable(java.lang.String name)
name
- the name of the variable to remove
java.util.List<Variable<IRubyObject>> getInstanceVariableList()
java.util.List<java.lang.String> getInstanceVariableNameList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |