Qt 4.8
|
#include <qdeclarativeparser_p.h>
Public Types | |
enum | Type { Invalid, Boolean, Number, String, Script } |
Public Functions | |
QDeclarativeJS::AST::Node * | asAST () const |
bool | asBoolean () const |
double | asNumber () const |
QString | asScript () const |
QString | asString () const |
QStringList | asStringList () const |
bool | isBoolean () const |
bool | isNumber () const |
bool | isScript () const |
bool | isString () const |
bool | isStringList () const |
Variant & | operator= (const Variant &) |
Type | type () const |
Variant () | |
Variant (const Variant &) | |
Variant (bool) | |
Variant (double, const QString &asWritten=QString()) | |
Variant (const QString &) | |
Variant (const QString &, QDeclarativeJS::AST::Node *) | |
Properties | |
union { | |
bool b | |
double d | |
QDeclarativeJS::AST::Node * n | |
}; | |
QString | s |
Type | t |
Definition at line 240 of file qdeclarativeparser_p.h.
Enumerator | |
---|---|
Invalid | |
Boolean | |
Number | |
String | |
Script |
Definition at line 243 of file qdeclarativeparser_p.h.
QDeclarativeParser::Variant::Variant | ( | ) |
Definition at line 264 of file qdeclarativeparser.cpp.
QDeclarativeParser::Variant::Variant | ( | const Variant & | o | ) |
Definition at line 267 of file qdeclarativeparser.cpp.
QDeclarativeParser::Variant::Variant | ( | bool | v | ) |
Definition at line 272 of file qdeclarativeparser.cpp.
Definition at line 277 of file qdeclarativeparser.cpp.
QDeclarativeParser::Variant::Variant | ( | const QString & | v | ) |
Definition at line 282 of file qdeclarativeparser.cpp.
QDeclarativeParser::Variant::Variant | ( | const QString & | v, |
QDeclarativeJS::AST::Node * | n | ||
) |
Definition at line 287 of file qdeclarativeparser.cpp.
QDeclarativeJS::AST::Node * QDeclarativeParser::Variant::asAST | ( | ) | const |
Definition at line 383 of file qdeclarativeparser.cpp.
Referenced by QDeclarativeBindingCompiler::compile(), and QDeclarativeCompiler::completeComponentBuild().
bool QDeclarativeParser::Variant::asBoolean | ( | ) | const |
Definition at line 305 of file qdeclarativeparser.cpp.
Referenced by QDeclarativePropertyChangesParser::compile(), QDeclarativeListModelParser::compileProperty(), and QDeclarativeCompiler::genLiteralAssignment().
double QDeclarativeParser::Variant::asNumber | ( | ) | const |
Definition at line 315 of file qdeclarativeparser.cpp.
Referenced by QDeclarativePropertyChangesParser::compile(), QDeclarativeListModelParser::compileProperty(), QDeclarativeCompiler::genLiteralAssignment(), and QDeclarativeCompiler::testLiteralAssignment().
QString QDeclarativeParser::Variant::asScript | ( | ) | const |
Definition at line 363 of file qdeclarativeparser.cpp.
Referenced by QDeclarativeDomValueBinding::binding(), QDeclarativeGestureAreaParser::compile(), QDeclarativeConnectionsParser::compile(), QDeclarativePropertyChangesParser::compile(), QDeclarativeListModelParser::compileProperty(), QDeclarativeCompiler::completeComponentBuild(), and QDeclarativeCompiler::genObjectBody().
QString QDeclarativeParser::Variant::asString | ( | ) | const |
Definition at line 310 of file qdeclarativeparser.cpp.
Referenced by asStringList(), QDeclarativePropertyChangesParser::compile(), QDeclarativeListModelParser::compileProperty(), QDeclarativeCompiler::genLiteralAssignment(), QDeclarativeCompiler::testLiteralAssignment(), and QDeclarativeCompiler::testQualifiedEnumAssignment().
QStringList QDeclarativeParser::Variant::asStringList | ( | ) | const |
Definition at line 416 of file qdeclarativeparser.cpp.
|
inline |
Definition at line 261 of file qdeclarativeparser_p.h.
Referenced by QDeclarativeListModelParser::compileProperty(), QDeclarativeCompiler::genLiteralAssignment(), and QDeclarativeCompiler::testLiteralAssignment().
|
inline |
Definition at line 262 of file qdeclarativeparser_p.h.
Referenced by QDeclarativeListModelParser::compileProperty(), QDeclarativeCompiler::genLiteralAssignment(), and QDeclarativeCompiler::testLiteralAssignment().
|
inline |
Definition at line 264 of file qdeclarativeparser_p.h.
Referenced by QDeclarativeCompiler::buildListProperty(), QDeclarativeCompiler::buildPropertyLiteralAssignment(), QDeclarativeCompiler::buildValueTypeProperty(), QDeclarativeGestureAreaParser::compile(), QDeclarativeConnectionsParser::compile(), QDeclarativePropertyChangesParser::compile(), and QDeclarativeListModelParser::compileProperty().
|
inline |
Definition at line 263 of file qdeclarativeparser_p.h.
Referenced by asStringList(), QDeclarativeListModelParser::compileProperty(), isStringList(), and QDeclarativeCompiler::testLiteralAssignment().
bool QDeclarativeParser::Variant::isStringList | ( | ) | const |
Definition at line 391 of file qdeclarativeparser.cpp.
QDeclarativeParser::Variant & QDeclarativeParser::Variant::operator= | ( | const Variant & | o | ) |
Definition at line 292 of file qdeclarativeparser.cpp.
QDeclarativeParser::Variant::Type QDeclarativeParser::Variant::type | ( | ) | const |
Definition at line 300 of file qdeclarativeparser.cpp.
Referenced by asAST(), asScript(), QDeclarativePropertyChangesParser::compile(), QDeclarativeListModelParser::compileProperty(), and isStringList().
union { ... } |
bool QDeclarativeParser::Variant::b |
Definition at line 277 of file qdeclarativeparser_p.h.
Referenced by asBoolean(), and asScript().
double QDeclarativeParser::Variant::d |
Definition at line 278 of file qdeclarativeparser_p.h.
Referenced by asNumber(), asScript(), and operator=().
QDeclarativeJS::AST::Node* QDeclarativeParser::Variant::n |
Definition at line 279 of file qdeclarativeparser_p.h.
Referenced by asAST(), asStringList(), and isStringList().
|
private |
Definition at line 281 of file qdeclarativeparser_p.h.
Referenced by asScript(), asString(), and operator=().
|
private |
Definition at line 275 of file qdeclarativeparser_p.h.
Referenced by operator=(), and type().