#include <tosqlparse.h>
Public Types | |
| enum | type { Block, Statement, List, Keyword, Token, Raw } |
Public Member Functions | |
| statement (type ntype=Token, const QString &token=QString::null, int cline=-1) | |
| std::list< statement > & | subTokens () |
| statement (const statement &) | |
| const statement & | operator= (const statement &) |
| bool | operator== (const statement &) const |
| bool | operator!= (const statement &stat) const |
| ~statement () | |
Public Attributes | |
| enum toSQLParse::statement::type | Type |
| QString | Comment |
| QString | String |
| int | Line |
| toSQLParse::statement::statement | ( | type | ntype = Token, |
|
| const QString & | token = QString::null, |
|||
| int | cline = -1 | |||
| ) |
Create statement
| toSQLParse::statement::statement | ( | const statement & | stat | ) |
| toSQLParse::statement::~statement | ( | ) |
Destroy statement
| std::list< toSQLParse::statement > & toSQLParse::statement::subTokens | ( | void | ) |
Allocate subtokens if not available and return reference to subtokens
Referenced by toSQLParse::indentStatement(), and toSQLParse::parse().
| const toSQLParse::statement & toSQLParse::statement::operator= | ( | const statement & | stat | ) |
| bool toSQLParse::statement::operator== | ( | const statement & | stat | ) | const |
| bool toSQLParse::statement::operator!= | ( | const statement & | stat | ) | const [inline] |
Non rquality operator. Does not include the line for comparison.
Referenced by toSQLParse::indentStatement(), operator=(), operator==(), toSQLParse::parse(), toSQLParse::parseStatement(), and statement().
| QString toSQLParse::statement::Comment |
Was there a comment attached to this token
Referenced by toSQLParse::indentStatement(), operator=(), operator==(), and statement().
| QString toSQLParse::statement::String |
The actual token.
Referenced by operator=(), operator==(), and statement().
The original line of the token (0 is first line)
Referenced by operator=(), and statement().
1.5.5