Package com.mckoi.database
Class Table.TableVariableResolver
- java.lang.Object
-
- com.mckoi.database.Table.TableVariableResolver
-
- All Implemented Interfaces:
VariableResolver
- Enclosing class:
- Table
final class Table.TableVariableResolver extends java.lang.Object implements VariableResolver
An implementation of VariableResolver that we can use to resolve column names in this table to cells for a specific row.
-
-
Field Summary
Fields Modifier and Type Field Description private int
row_index
-
Constructor Summary
Constructors Constructor Description TableVariableResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
findColumnName(Variable variable)
TObject
resolve(Variable variable)
Returns the value of a given variable.TType
returnTType(Variable variable)
Returns the TType of object the given variable is.int
setID()
A number that uniquely identifies the current state of the variable resolver.void
setRow(int row_index)
-
-
-
Method Detail
-
setRow
public void setRow(int row_index)
-
findColumnName
private int findColumnName(Variable variable)
-
setID
public int setID()
Description copied from interface:VariableResolver
A number that uniquely identifies the current state of the variable resolver. This typically returns the row_index of the table we are resolving variables on.- Specified by:
setID
in interfaceVariableResolver
-
resolve
public TObject resolve(Variable variable)
Description copied from interface:VariableResolver
Returns the value of a given variable.- Specified by:
resolve
in interfaceVariableResolver
-
returnTType
public TType returnTType(Variable variable)
Description copied from interface:VariableResolver
Returns the TType of object the given variable is.- Specified by:
returnTType
in interfaceVariableResolver
-
-