public class VariableAccessorVar9 extends FieldVariableAccessor
classId, DUMMY_ACCESSOR, index, name, realClass| Constructor and Description |
|---|
VariableAccessorVar9(RubyClass realClass,
java.lang.String name,
int index,
int classId)
Construct a new StampedVariableAccessor for the given "real" class,
variable name, variable index, and class ID.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.Object object)
Retrieve the variable's value from the given object.
|
void |
set(java.lang.Object object,
java.lang.Object value)
Set this variable into the given object using Unsafe to ensure
safe updating of the variable table.
|
static void |
setVariable(RubyBasicObject self,
RubyClass realClass,
int index,
java.lang.Object value)
Set the given variable index into the specified object.
|
static void |
setVariableChecked(RubyBasicObject self,
RubyClass realClass,
int index,
java.lang.Object value)
Set the given variable index into the specified object.
|
getOffsetgetClassId, getIndex, getName, getVariablepublic VariableAccessorVar9(RubyClass realClass, java.lang.String name, int index, int classId)
realClass - the "real" classname - the variable's nameindex - the variable's indexclassId - the class's IDpublic java.lang.Object get(java.lang.Object object)
get in class VariableAccessorobject - the object from which to retrieve this variablepublic void set(java.lang.Object object,
java.lang.Object value)
set in class VariableAccessorobject - the object into which to set this variablevalue - the variable's valuepublic static void setVariableChecked(RubyBasicObject self, RubyClass realClass, int index, java.lang.Object value)
self - the object into which to set the variablerealClass - the "real" class for the objectindex - the index of the variablevalue - the variable's valuepublic static void setVariable(RubyBasicObject self, RubyClass realClass, int index, java.lang.Object value)
self - the object into which to set the variablerealClass - the "real" class for the objectindex - the index of the variablevalue - the variable's valueCopyright © 2002-2009 JRuby Team. All Rights Reserved.