kexi
KexiDB::VariableExpr Class Reference
#include <expression.h>
Inheritance diagram for KexiDB::VariableExpr:

Detailed Description
Variables like fieldname or tablename.fieldname.
Definition at line 244 of file expression.h.
Public Member Functions | |
VariableExpr (const QString &_name) | |
VariableExpr (const VariableExpr &expr) | |
virtual | ~VariableExpr () |
virtual VariableExpr * | copy () const |
virtual Field::Type | type () |
virtual QString | debugString () |
virtual QString | toString (QuerySchemaParameterValueListIterator *params=0) |
virtual void | getQueryParameters (QuerySchemaParameterList ¶ms) |
virtual bool | validate (ParseInfo &parseInfo) |
Public Attributes | |
QString | name |
Field * | field |
int | tablePositionForField |
TableSchema * | tableForQueryAsterisk |
Member Function Documentation
VariableExpr * VariableExpr::copy | ( | ) | const [virtual] |
- Returns:
- a deep copy of this object.
Implements KexiDB::BaseExpr.
Definition at line 651 of file expression.cpp.
Field::Type VariableExpr::type | ( | ) | [virtual] |
We're assuming it's called after VariableExpr::validate().
Reimplemented from KexiDB::BaseExpr.
Definition at line 674 of file expression.cpp.
QString VariableExpr::toString | ( | QuerySchemaParameterValueListIterator * | params = 0 |
) | [virtual] |
- Returns:
- string as a representation of this expression element by running recursive calls. param, if not 0, points to a list item containing value of a query parameter (used in QueryParameterExpr).
Implements KexiDB::BaseExpr.
Definition at line 662 of file expression.cpp.
void VariableExpr::getQueryParameters | ( | QuerySchemaParameterList & | params | ) | [virtual] |
Collects query parameters (messages and types) reculsively and saves them to params. The leaf nodes are objects of QueryParameterExpr class.
Implements KexiDB::BaseExpr.
Definition at line 668 of file expression.cpp.
bool VariableExpr::validate | ( | ParseInfo & | parseInfo | ) | [virtual] |
Validation. Sets field, tablePositionForField and tableForQueryAsterisk members. See addColumn() in parse.y to see how it's used on column adding.
Reimplemented from KexiDB::BaseExpr.
Definition at line 685 of file expression.cpp.
Member Data Documentation
QString KexiDB::VariableExpr::name |
Verbatim name as returned by scanner.
Definition at line 263 of file expression.h.
NULL by default. After successful validate() it will point to a table that is referenced by asterisk, i.e. "*.tablename". This is set to NULL if this variable is not an asterisk of that form.
Definition at line 282 of file expression.h.
The documentation for this class was generated from the following files: