Qt 4.8
|
#include <qdeclarativescriptparser_p.h>
Classes | |
class | Import |
class | JavaScriptMetaData |
class | TypeReference |
Public Functions | |
void | clear () |
QList< QDeclarativeError > | errors () const |
TypeReference * | findOrCreateType (const QString &name) |
QList< Import > | imports () const |
bool | parse (const QByteArray &data, const QUrl &url=QUrl()) |
QDeclarativeScriptParser () | |
QList< TypeReference * > | referencedTypes () const |
QString | scriptFile () const |
void | setScriptFile (const QString &filename) |
void | setTree (QDeclarativeParser::Object *tree) |
QDeclarativeParser::Object * | tree () const |
~QDeclarativeScriptParser () | |
Static Public Functions | |
static JavaScriptMetaData | extractMetaData (QString &) |
static QDeclarativeParser::Object::ScriptBlock::Pragmas | extractPragmas (QString &) |
Public Variables | |
QList< QDeclarativeError > | _errors |
QList< Import > | _imports |
QList< TypeReference * > | _refTypes |
QString | _scriptFile |
QDeclarativeScriptParserJsASTData * | data |
QDeclarativeParser::Object * | root |
Definition at line 70 of file qdeclarativescriptparser_p.h.
QDeclarativeScriptParser::QDeclarativeScriptParser | ( | ) |
Definition at line 800 of file qdeclarativescriptparser.cpp.
QDeclarativeScriptParser::~QDeclarativeScriptParser | ( | ) |
Definition at line 806 of file qdeclarativescriptparser.cpp.
void QDeclarativeScriptParser::clear | ( | ) |
Definition at line 1164 of file qdeclarativescriptparser.cpp.
Referenced by QDeclarativeTypeData::done(), parse(), and ~QDeclarativeScriptParser().
QList< QDeclarativeError > QDeclarativeScriptParser::errors | ( | ) | const |
Definition at line 886 of file qdeclarativescriptparser.cpp.
Referenced by QDeclarativeTypeData::dataReceived().
|
static |
Definition at line 1007 of file qdeclarativescriptparser.cpp.
|
static |
Definition at line 904 of file qdeclarativescriptparser.cpp.
Referenced by QDeclarativeScriptData::dataReceived(), QDeclarativeInclude::finished(), QDeclarativeInclude::include(), QDeclarativeWorkerScriptEnginePrivate::processLoad(), and QDeclarativeInclude::worker_include().
QDeclarativeScriptParser::TypeReference * QDeclarativeScriptParser::findOrCreateType | ( | const QString & | name | ) |
Definition at line 1181 of file qdeclarativescriptparser.cpp.
QList< QDeclarativeScriptParser::Import > QDeclarativeScriptParser::imports | ( | ) | const |
Definition at line 881 of file qdeclarativescriptparser.cpp.
Referenced by QDeclarativeTypeData::dataReceived(), QDeclarativeDomDocument::load(), and QDeclarativeTypeData::resolveTypes().
bool QDeclarativeScriptParser::parse | ( | const QByteArray & | data, |
const QUrl & | url = QUrl() |
||
) |
Definition at line 821 of file qdeclarativescriptparser.cpp.
Referenced by QDeclarativeTypeData::dataReceived().
QList< QDeclarativeScriptParser::TypeReference * > QDeclarativeScriptParser::referencedTypes | ( | ) | const |
Definition at line 871 of file qdeclarativescriptparser.cpp.
Referenced by QDeclarativeCompiler::compile(), QDeclarativeTypeData::done(), and QDeclarativeTypeData::resolveTypes().
|
inline |
Definition at line 132 of file qdeclarativescriptparser_p.h.
|
inline |
Definition at line 131 of file qdeclarativescriptparser_p.h.
void QDeclarativeScriptParser::setTree | ( | QDeclarativeParser::Object * | tree | ) |
Definition at line 1199 of file qdeclarativescriptparser.cpp.
QDeclarativeParser::Object * QDeclarativeScriptParser::tree | ( | ) | const |
Definition at line 876 of file qdeclarativescriptparser.cpp.
Referenced by QDeclarativeCompiler::compile(), QDeclarativeDomDocument::load(), and setTree().
QList<QDeclarativeError> QDeclarativeScriptParser::_errors |
Definition at line 135 of file qdeclarativescriptparser_p.h.
Definition at line 138 of file qdeclarativescriptparser_p.h.
QList<TypeReference*> QDeclarativeScriptParser::_refTypes |
Definition at line 139 of file qdeclarativescriptparser_p.h.
Referenced by clear(), findOrCreateType(), and referencedTypes().
QString QDeclarativeScriptParser::_scriptFile |
Definition at line 140 of file qdeclarativescriptparser_p.h.
Referenced by parse(), scriptFile(), and setScriptFile().
QDeclarativeScriptParserJsASTData* QDeclarativeScriptParser::data |
Definition at line 141 of file qdeclarativescriptparser_p.h.
Referenced by clear(), parse(), and replaceWithSpace().
QDeclarativeParser::Object* QDeclarativeScriptParser::root |
Definition at line 137 of file qdeclarativescriptparser_p.h.