![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtQmlCompiler More...
#include <qqmlsa.h>
Public Member Functions | |
| Element () | |
| Constructs a new Element object. | |
| Element (const Element &) | |
| Creates a copy of other. | |
| Element (Element &&other) noexcept | |
| Move-constructs an Element instance. | |
| Element & | operator= (const Element &) |
| Assigns other to this element instance. | |
| ~Element () | |
| Destroys the element. | |
| ScopeType | scopeType () const |
| Returns the type of Element's scope. | |
| Element | baseType () const |
| Returns the Element this Element derives from. | |
| QString | baseTypeName () const |
| Returns the name of the Element this Element derives from. | |
| Element | parentScope () const |
| Returns the Element that encloses this Element. | |
| bool | inherits (const Element &) const |
| Returns whether this Element inherits from element. | |
| bool | isFileRootComponent () const |
| Returns whether this Element is the root component of its QML file. | |
| bool | isNull () const |
Returns true if this element is null, false otherwise. | |
| QString | internalId () const |
| AccessSemantics | accessSemantics () const |
| Returns the access semantics of this Element. | |
| bool | isComposite () const |
Returns true for objects defined from Qml, and false for objects declared from C++. | |
| bool | hasProperty (const QString &propertyName) const |
| Returns whether this Element has a property with the name propertyName. | |
| bool | hasOwnProperty (const QString &propertyName) const |
| Returns whether this Element defines a property with the name propertyName which is not defined on its base or extension objects. | |
| Property | property (const QString &propertyName) const |
| Returns the property with the name propertyName if it is found in this Element or its base and extension objects, otherwise returns an invalid property. | |
| bool | isPropertyRequired (const QString &propertyName) const |
| Returns whether the property with the name propertyName resolved on this Element is required. | |
| QString | defaultPropertyName () const |
| Returns the name of the default property of this Element. | |
| bool | hasMethod (const QString &methodName) const |
| Returns whether this Element has a method with the name methodName. | |
| Method::Methods | ownMethods () const |
| Returns this Elements's methods, which are not defined on its base or extension objects. | |
| QQmlSA::SourceLocation | sourceLocation () const |
| Returns the location in the QML code where this Element is defined. | |
| QQmlSA::SourceLocation | idSourceLocation () const |
| Returns the location in the QML code where this Element is assigned its id, if it has one. | |
| QString | filePath () const |
| Returns the file path of the QML code that defines this Element. | |
| bool | hasPropertyBindings (const QString &name) const |
| Returns whether this Element has a property binding with the name name. | |
| bool | hasOwnPropertyBindings (const QString &propertyName) const |
| Returns whether this Element has property bindings which are not defined in its base or extension objects and that have name propertyName. | |
| Binding::Bindings | ownPropertyBindings () const |
| Returns this Element's property bindings which are not defined on its base or extension objects. | |
| Binding::Bindings | ownPropertyBindings (const QString &propertyName) const |
| Returns this Element's property bindings which are not defined on its base or extension objects and that have the name propertyName. | |
| QList< Binding > | propertyBindings (const QString &propertyName) const |
| Returns this Element's property bindings that have the name propertyName. | |
| operator bool () const | |
Returns true if this element is not null, false otherwise. | |
| bool | operator! () const |
Returns true if this element is null, false otherwise. | |
| QString | name () const |
| Returns the name of this Element. | |
Friends | |
| class | QT_PREPEND_NAMESPACE (QQmlJSScope) |
| bool | operator== (const QQmlSA::Element &lhs, const QQmlSA::Element &rhs) |
Returns true if lhs and rhs are equal, and false otherwise. | |
| bool | operator!= (const Element &lhs, const Element &rhs) |
Returns true if lhs and rhs are not equal, and false otherwise. | |
| size_t | qHash (const Element &key, size_t seed=0) noexcept |
| \qhash{Element} | |
| void | swap (Element &lhs, Element &rhs) noexcept |
| QQmlSA::Element::Element | ( | ) |
Constructs a new Element object.
Definition at line 883 of file qqmlsa.cpp.
| QQmlSA::Element::Element | ( | const Element & | other | ) |
Creates a copy of other.
Definition at line 891 of file qqmlsa.cpp.
|
inlinenoexcept |
| QQmlSA::Element::~Element | ( | ) |
Destroys the element.
Definition at line 921 of file qqmlsa.cpp.
| AccessSemantics QQmlSA::Element::accessSemantics | ( | ) | const |
Returns the access semantics of this Element.
For example, Reference, Value or Sequence.
Definition at line 994 of file qqmlsa.cpp.
| Element QQmlSA::Element::baseType | ( | ) | const |
Returns the Element this Element derives from.
Definition at line 937 of file qqmlsa.cpp.
| QString QQmlSA::Element::baseTypeName | ( | ) | const |
Returns the name of the Element this Element derives from.
Definition at line 945 of file qqmlsa.cpp.
| QString QQmlSA::Element::defaultPropertyName | ( | ) | const |
Returns the name of the default property of this Element.
If it doesn't have one, returns an empty string.
Definition at line 1046 of file qqmlsa.cpp.
| QString QQmlSA::Element::filePath | ( | ) | const |
Returns the file path of the QML code that defines this Element.
Definition at line 1096 of file qqmlsa.cpp.
| bool QQmlSA::Element::hasMethod | ( | const QString & | methodName | ) | const |
Returns whether this Element has a method with the name methodName.
Definition at line 1054 of file qqmlsa.cpp.
| bool QQmlSA::Element::hasOwnProperty | ( | const QString & | propertyName | ) | const |
Returns whether this Element defines a property with the name propertyName which is not defined on its base or extension objects.
Definition at line 1019 of file qqmlsa.cpp.
| bool QQmlSA::Element::hasOwnPropertyBindings | ( | const QString & | propertyName | ) | const |
Returns whether this Element has property bindings which are not defined in its base or extension objects and that have name propertyName.
Definition at line 1113 of file qqmlsa.cpp.
| bool QQmlSA::Element::hasProperty | ( | const QString & | propertyName | ) | const |
Returns whether this Element has a property with the name propertyName.
Definition at line 1010 of file qqmlsa.cpp.
| bool QQmlSA::Element::hasPropertyBindings | ( | const QString & | name | ) | const |
Returns whether this Element has a property binding with the name name.
Definition at line 1104 of file qqmlsa.cpp.
| QQmlSA::SourceLocation QQmlSA::Element::idSourceLocation | ( | ) | const |
Returns the location in the QML code where this Element is assigned its id, if it has one.
Definition at line 1087 of file qqmlsa.cpp.
| bool QQmlSA::Element::inherits | ( | const Element & | element | ) | const |
Returns whether this Element inherits from element.
Definition at line 961 of file qqmlsa.cpp.
| QString QQmlSA::Element::internalId | ( | ) | const |
Definition at line 985 of file qqmlsa.cpp.
| bool QQmlSA::Element::isComposite | ( | ) | const |
Returns true for objects defined from Qml, and false for objects declared from C++.
Definition at line 1002 of file qqmlsa.cpp.
| bool QQmlSA::Element::isFileRootComponent | ( | ) | const |
Returns whether this Element is the root component of its QML file.
Definition at line 969 of file qqmlsa.cpp.
| bool QQmlSA::Element::isNull | ( | ) | const |
Returns true if this element is null, false otherwise.
Definition at line 977 of file qqmlsa.cpp.
| bool QQmlSA::Element::isPropertyRequired | ( | const QString & | propertyName | ) | const |
Returns whether the property with the name propertyName resolved on this Element is required.
Returns false if the the property couldn't be found.
Definition at line 1037 of file qqmlsa.cpp.
| QString QQmlSA::Element::name | ( | ) | const |
Returns the name of this Element.
Definition at line 1197 of file qqmlsa.cpp.
|
explicit |
Returns true if this element is not null, false otherwise.
Definition at line 1181 of file qqmlsa.cpp.
| bool QQmlSA::Element::operator! | ( | ) | const |
Returns true if this element is null, false otherwise.
Definition at line 1189 of file qqmlsa.cpp.
Assigns other to this element instance.
Move-assigns other to this Element instance.
Definition at line 904 of file qqmlsa.cpp.
| Method::Methods QQmlSA::Element::ownMethods | ( | ) | const |
Returns this Elements's methods, which are not defined on its base or extension objects.
Definition at line 1070 of file qqmlsa.cpp.
| Binding::Bindings QQmlSA::Element::ownPropertyBindings | ( | ) | const |
Returns this Element's property bindings which are not defined on its base or extension objects.
Definition at line 1122 of file qqmlsa.cpp.
| Binding::Bindings QQmlSA::Element::ownPropertyBindings | ( | const QString & | propertyName | ) | const |
Returns this Element's property bindings which are not defined on its base or extension objects and that have the name propertyName.
Definition at line 1131 of file qqmlsa.cpp.
| Element QQmlSA::Element::parentScope | ( | ) | const |
Returns the Element that encloses this Element.
Definition at line 953 of file qqmlsa.cpp.
| QQmlSA::Property QQmlSA::Element::property | ( | const QString & | propertyName | ) | const |
Returns the property with the name propertyName if it is found in this Element or its base and extension objects, otherwise returns an invalid property.
Definition at line 1028 of file qqmlsa.cpp.
Returns this Element's property bindings that have the name propertyName.
Definition at line 1140 of file qqmlsa.cpp.
| QQmlJSScope::ScopeType QQmlSA::Element::scopeType | ( | ) | const |
Returns the type of Element's scope.
Definition at line 929 of file qqmlsa.cpp.
| QQmlSA::SourceLocation QQmlSA::Element::sourceLocation | ( | ) | const |
Returns the location in the QML code where this Element is defined.
Definition at line 1078 of file qqmlsa.cpp.
|
friend |
|
friend |
|
friend |