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 introw_index
-
Constructor Summary
Constructors Constructor Description TableVariableResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intfindColumnName(Variable variable)TObjectresolve(Variable variable)Returns the value of a given variable.TTypereturnTType(Variable variable)Returns the TType of object the given variable is.intsetID()A number that uniquely identifies the current state of the variable resolver.voidsetRow(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:VariableResolverA 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:
setIDin interfaceVariableResolver
-
resolve
public TObject resolve(Variable variable)
Description copied from interface:VariableResolverReturns the value of a given variable.- Specified by:
resolvein interfaceVariableResolver
-
returnTType
public TType returnTType(Variable variable)
Description copied from interface:VariableResolverReturns the TType of object the given variable is.- Specified by:
returnTTypein interfaceVariableResolver
-
-