Package org.jruby.runtime.ivars
Class VariableAccessorField
java.lang.Object
org.jruby.runtime.ivars.VariableAccessorField
A lazy mechanism for accessing VariableAccessors for a given variable name.
-
Constructor Summary
ConstructorsConstructorDescriptionVariableAccessorField
(String name) Construct a new VariableAccessorField for the given named variable. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the variable accessor for read.Retrieve the variable access for write.
-
Constructor Details
-
VariableAccessorField
Construct a new VariableAccessorField for the given named variable.- Parameters:
name
- the name of the variable
-
-
Method Details
-
getVariableAccessorForRead
Retrieve the variable accessor for read.- Returns:
- the variable accessor appropriate for reads
-
getVariableAccessorForWrite
Retrieve the variable access for write.- Parameters:
tableMgr
- the VariableTableManager for which to allocate an accessor, if it has not already been allocated.- Returns:
- the variable accessor appropriate for writes.
-