QQmlSA::PropertyPass Class
class QQmlSA::PropertyPass속성에 대한 모든 정적 분석 단계의 기본 클래스입니다. 더 보기...
| 헤더: | #include <qqmlsa.h> |
| 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 내에서 binding 를 통해 value 에 바인딩됩니다.
[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 입니다.
© 2026 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.