| Modifier and Type | Field and Description |
|---|---|
| private final String | name
the name of the variable |
| private volatile VariableAccessor | variableAccessor
the accessor cached after it has been allocated |
| Access | Constructor and Description |
|---|---|
| public | VariableAccessorField(String
the name of the variable name)Construct a new VariableAccessorField for the given named variable. |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized VariableAccessor | Returns: the variable accessor appropriate for writesthe VariableTableManager for which to allocate an
accessor, if it has not already been allocated. tableMgr)Retrieve or allocate the variable accessor for this variable. |
| public VariableAccessor | Returns: the variable accessor appropriate for readsRetrieve the variable accessor for read. |
| public VariableAccessor | Returns: the variable accessor appropriate for writes.the VariableTableManager for which to allocate an
accessor, if it has not already been allocated. tableMgr)Retrieve the variable access for write. |
| name | back to summary |
|---|---|
| private final String name the name of the variable | |
| variableAccessor | back to summary |
|---|---|
| private volatile VariableAccessor variableAccessor the accessor cached after it has been allocated | |
| VariableAccessorField | back to summary |
|---|---|
| public VariableAccessorField(String name) Construct a new VariableAccessorField for the given named variable.
| |
| allocateVariableAccessor | back to summary |
|---|---|
| private synchronized VariableAccessor allocateVariableAccessor(VariableTableManager tableMgr) Retrieve or allocate the variable accessor for this variable. This version differs from getVariableAccessorForWrite only in its visibility and the fact that it is synchronized against this field to ensure volatile behavior of the variableAccessor field.
| |
| getVariableAccessorForRead | back to summary |
|---|---|
| public VariableAccessor getVariableAccessorForRead() Retrieve the variable accessor for read.
| |
| getVariableAccessorForWrite | back to summary |
|---|---|
| public VariableAccessor getVariableAccessorForWrite(VariableTableManager tableMgr) Retrieve the variable access for write.
| |