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

Detailed Description
A base class for binary operation- arithmetic operations: + - / * % << >> & | ||
- relational operations: = (or ==) < > <= >= <> (or !=) LIKE IN 'SIMILAR TO' 'NOT SIMILAR TO'
- logical operations: OR (or ||) AND (or &&) XOR
- SpecialBinary "pseudo operators": e.g. "f1 f2" : token == 0 e.g. "f1 AS f2" : token == AS
Definition at line 161 of file expression.h.
Public Member Functions | |
BinaryExpr (int aClass, BaseExpr *left_expr, int token, BaseExpr *right_expr) | |
virtual | ~BinaryExpr () |
virtual Field::Type | type () |
virtual QString | debugString () |
virtual QString | toString (QuerySchemaParameterValueListIterator *params=0) |
virtual void | getQueryParameters (QuerySchemaParameterList ¶ms) |
BaseExpr * | left () const |
BaseExpr * | right () const |
virtual bool | validate (ParseInfo &parseInfo) |
virtual QString | tokenToString () |
Public Attributes | |
BaseExpr * | m_larg |
BaseExpr * | m_rarg |
Member Function Documentation
QString BinaryExpr::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 419 of file expression.cpp.
void BinaryExpr::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 426 of file expression.cpp.
bool BinaryExpr::validate | ( | ParseInfo & | parseInfo | ) | [virtual] |
QString BinaryExpr::tokenToString | ( | ) | [virtual] |
- Returns:
- string for token, like "<=" or ">"
Reimplemented from KexiDB::BaseExpr.
Definition at line 389 of file expression.cpp.
The documentation for this class was generated from the following files: