public final class VariableAccessorField
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name
the name of the variable
|
private VariableAccessor |
variableAccessor
the accessor cached after it has been allocated
|
| Constructor and Description |
|---|
VariableAccessorField(java.lang.String name)
Construct a new VariableAccessorField for the given named variable.
|
| Modifier and Type | Method and Description |
|---|---|
private VariableAccessor |
allocateVariableAccessor(VariableTableManager tableMgr)
Retrieve or allocate the variable accessor for this variable.
|
VariableAccessor |
getVariableAccessorForRead()
Retrieve the variable accessor for read.
|
VariableAccessor |
getVariableAccessorForWrite(VariableTableManager tableMgr)
Retrieve the variable access for write.
|
private final java.lang.String name
private volatile VariableAccessor variableAccessor
public VariableAccessorField(java.lang.String name)
name - the name of the variablepublic VariableAccessor getVariableAccessorForRead()
public VariableAccessor getVariableAccessorForWrite(VariableTableManager tableMgr)
tableMgr - the VariableTableManager for which to allocate an
accessor, if it has not already been allocated.private VariableAccessor allocateVariableAccessor(VariableTableManager tableMgr)
tableMgr - the VariableTableManager for which to allocate an
accessor, if it has not already been allocated.