jruby/docs BETA
Navigation
org.jruby.runtime.ivars 8
C AtomicVariableTable
C FieldVariableAccessor
C MethodData
C RawFieldVariableAccessor
C StampedVariableAccessor
C VariableAccessor
C VariableAccessorField
C VariableTableManager
VariableAccessorField — members 3
C new(name)
M get_variable_accessor_for_write(table_mgr) VariableAccessor
M variable_accessor_for_read() VariableAccessor

org.jruby.runtime.ivars.VariableAccessorField

class final 3 members

A lazy mechanism for accessing VariableAccessors for a given variable name.

Constructors

new

new ( String name )
Java: <init>(String name)

Construct a new VariableAccessorField for the given named variable.

nametypedescription
nameStringthe name of the variable

Instance Methods

get_variable_accessor_for_write

VariableAccessor get_variable_accessor_for_write ( VariableTableManager table_mgr )
Java: getVariableAccessorForWrite(org.jruby.runtime.ivars.VariableTableManager tableMgr)

Retrieve the variable access for write.

nametypedescription
table_mgrorg.jruby.runtime.ivars.VariableTableManagerthe VariableTableManager for which to allocate an accessor, if it has not already been allocated.

Returns: the variable accessor appropriate for writes.

variable_accessor_for_read

VariableAccessor variable_accessor_for_read ( )
Java: getVariableAccessorForRead() · also: get_variable_accessor_for_read

Retrieve the variable accessor for read.

Returns: the variable accessor appropriate for reads