QQmlSA::PropertyPass Class
class QQmlSA::PropertyPassプロパティに対するすべての静的解析パスの基本クラスです。さらに...
ヘッダー | #include <PropertyPass> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
継承する: | QQmlSA::GenericPass |
ステータス | 技術プレビュー |
パブリック関数
PropertyPass(QQmlSA::PassManager *manager) | |
virtual void | onBinding(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Binding &binding, const QQmlSA::Element &bindingScope, const QQmlSA::Element &value) |
virtual void | onCall(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location) |
virtual void | onRead(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location) |
virtual void | onWrite(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &expressionType, const QQmlSA::Element &writeScope, QQmlSA::SourceLocation location) |
メンバ関数の説明
PropertyPass::PropertyPass(QQmlSA::PassManager *manager)
PropertyPass オブジェ ク ト を作成 し 、manager を用いてパスマネージ ャ を参照。
[virtual]
void PropertyPass::onBinding(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Binding &binding, const QQmlSA::Element &bindingScope, const QQmlSA::Element &value)
プロパティが値にバインドされるたびに実行される。
element のプロパティpropertyName はbindingScope のvalue にbinding でバインドされる。
[virtual]
void PropertyPass::onCall(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location)
プロパティやメソッドが呼び出されるたびに実行される。
element のプロパティまたはメソッドpropertyName は、location で定義されたreadScope 内の命令によって関数として呼び出される。
注: 現在、メソッドまたはプロパティの直接呼び出しのみがサポートされており、JavaScript変数にメソッドを格納してからその変数を呼び出すなどの間接呼び出しは認識されません。
[virtual]
void PropertyPass::onRead(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location)
プロパティが読み込まれるたびに実行される。
element のプロパティpropertyName は、location で定義されたreadScope 内の命令によって読み込まれる。
これは、propertyName プロパティが関数として呼び出された場合にも実行される。
[virtual]
void PropertyPass::onWrite(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &expressionType, const QQmlSA::Element &writeScope, QQmlSA::SourceLocation location)
プロパティが書き込まれるたびに実行される。
element のプロパティpropertyName は、location で定義されたwriteScope 内の命令によって書き込まれる。propertyName に書き込まれる式の型はexpressionType である。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.