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

Detailed Description
A base class for all expressions.
Definition at line 62 of file expression.h.
Public Types | |
| typedef QPtrList< BaseExpr > | List |
| typedef QPtrListIterator< BaseExpr > | ListIterator |
Public Member Functions | |
| BaseExpr (int token) | |
| virtual | ~BaseExpr () |
| int | token () const |
| virtual Field::Type | type () |
| BaseExpr * | parent () const |
| virtual void | setParent (BaseExpr *p) |
| virtual bool | validate (ParseInfo &parseInfo) |
| virtual QString | toString (QuerySchemaParameterValueListIterator *params=0)=0 |
| virtual void | getQueryParameters (QuerySchemaParameterList ¶ms)=0 |
| void | debug () |
| virtual QString | debugString () |
| QString | tokenToDebugString () |
| virtual QString | tokenToString () |
| int | exprClass () const |
| NArgExpr * | toNArg () |
| UnaryExpr * | toUnary () |
| BinaryExpr * | toBinary () |
| ConstExpr * | toConst () |
| VariableExpr * | toVariable () |
| FunctionExpr * | toFunction () |
| QueryParameterExpr * | toQueryParameter () |
Static Public Member Functions | |
| static QString | tokenToDebugString (int token) |
Protected Attributes | |
| int | m_cl |
| class | |
| BaseExpr * | m_par |
| parent expression | |
| int | m_token |
Member Typedef Documentation
|
|
Definition at line 65 of file expression.h. |
|
|
Definition at line 66 of file expression.h. |
Constructor & Destructor Documentation
|
|
Definition at line 67 of file expression.cpp. |
|
|
Definition at line 75 of file expression.cpp. |
Member Function Documentation
|
|
Definition at line 90 of file expression.h. References KexiDBDbg. |
|
|
Reimplemented in KexiDB::NArgExpr, KexiDB::UnaryExpr, KexiDB::BinaryExpr, KexiDB::ConstExpr, KexiDB::QueryParameterExpr, KexiDB::VariableExpr, and KexiDB::FunctionExpr. Definition at line 84 of file expression.cpp. References KexiDB::Driver::defaultSQLTypeName(), m_token, and type(). Referenced by KexiQueryDesignerGuiEditor::buildSchema(), KexiDB::Field::debugString(), KexiDB::BinaryExpr::debugString(), and KexiDB::UnaryExpr::debugString(). |
|
|
Definition at line 103 of file expression.h. Referenced by addColumn(), buildSelectQuery(), and KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(). |
|
|
Collects query parameters (messages and types) reculsively and saves them to params. The leaf nodes are objects of QueryParameterExpr class. Implemented in KexiDB::NArgExpr, KexiDB::UnaryExpr, KexiDB::BinaryExpr, KexiDB::ConstExpr, KexiDB::QueryParameterExpr, KexiDB::VariableExpr, and KexiDB::FunctionExpr. Referenced by KexiDB::BinaryExpr::getQueryParameters(), and KexiDB::UnaryExpr::getQueryParameters(). |
|
|
Definition at line 75 of file expression.h. Referenced by KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(). |
|
|
Definition at line 77 of file expression.h. Referenced by KexiDB::BinaryExpr::BinaryExpr(), KexiDB::FunctionExpr::FunctionExpr(), and KexiDB::UnaryExpr::UnaryExpr(). |
|
|
Definition at line 117 of file expression.cpp. Referenced by buildSelectQuery(), and KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(). |
|
|
Definition at line 118 of file expression.cpp. |
|
|
Definition at line 120 of file expression.cpp. |
|
|
Definition at line 71 of file expression.h. Referenced by buildSelectQuery(), and KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(). |
|
|
Definition at line 97 of file expression.cpp. References safe_tname. |
|
|
Definition at line 96 of file expression.h. Referenced by KexiDB::ConstExpr::debugString(), KexiDB::BinaryExpr::debugString(), KexiDB::UnaryExpr::debugString(), KexiDB::BinaryExpr::tokenToString(), tokenToString(), and KexiDB::UnaryExpr::toString(). |
|
|
Reimplemented in KexiDB::BinaryExpr. Definition at line 108 of file expression.cpp. References m_token, and tokenToDebugString(). |
|
|
Convenience type casts. Definition at line 115 of file expression.cpp. |
|
|
Definition at line 121 of file expression.cpp. Referenced by KexiDB::BinaryExpr::validate(), and KexiDB::UnaryExpr::validate(). |
|
|
Implemented in KexiDB::NArgExpr, KexiDB::UnaryExpr, KexiDB::BinaryExpr, KexiDB::ConstExpr, KexiDB::QueryParameterExpr, KexiDB::VariableExpr, and KexiDB::FunctionExpr. Referenced by buildSelectQuery(), KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(), KexiQueryDesignerGuiEditor::slotBeforeCellChanged(), and KexiDB::UnaryExpr::toString(). |
|
|
Definition at line 116 of file expression.cpp. Referenced by KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(). |
|
|
Definition at line 119 of file expression.cpp. Referenced by addColumn(), buildSelectQuery(), and KexiQueryDesignerGuiEditor::parseExpressionString(). |
|
|
Reimplemented in KexiDB::UnaryExpr, KexiDB::BinaryExpr, KexiDB::ConstExpr, KexiDB::QueryParameterExpr, KexiDB::VariableExpr, and KexiDB::FunctionExpr. Definition at line 79 of file expression.cpp. References KexiDB::Field::InvalidType. Referenced by debugString(), KexiDB::Field::type(), KexiDB::BinaryExpr::type(), KexiDB::UnaryExpr::type(), and KexiDB::BinaryExpr::validate(). |
|
|
Reimplemented in KexiDB::NArgExpr, KexiDB::UnaryExpr, KexiDB::BinaryExpr, KexiDB::ConstExpr, KexiDB::QueryParameterExpr, KexiDB::VariableExpr, and KexiDB::FunctionExpr. Definition at line 89 of file expression.cpp. Referenced by addColumn(), KexiDB::FunctionExpr::validate(), KexiDB::VariableExpr::validate(), KexiDB::ConstExpr::validate(), KexiDB::BinaryExpr::validate(), KexiDB::UnaryExpr::validate(), and KexiDB::NArgExpr::validate(). |
Member Data Documentation
|
|
|
parent expression
Definition at line 116 of file expression.h. |
|
|
Definition at line 117 of file expression.h. Referenced by debugString(), KexiDB::BinaryExpr::tokenToString(), tokenToString(), KexiDB::ConstExpr::toString(), KexiDB::UnaryExpr::toString(), KexiDB::ConstExpr::type(), KexiDB::BinaryExpr::type(), and KexiDB::UnaryExpr::type(). |
The documentation for this class was generated from the following files:
