![]() |
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. | |
| qsizetype | qHash (const Element &key, qsizetype seed=0) noexcept |
| Returns the hash for key using seed to seed the calculation. | |
| void | swap (Element &lhs, Element &rhs) noexcept |
| QQmlSA::Element::Element | ( | ) |
Constructs a new Element object.
Definition at line 882 of file qqmlsa.cpp.
| QQmlSA::Element::Element | ( | const Element & | other | ) |
Creates a copy of other.
Definition at line 890 of file qqmlsa.cpp.
|
inlinenoexcept |
| QQmlSA::Element::~Element | ( | ) |
Destroys the element.
Definition at line 920 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 993 of file qqmlsa.cpp.
| Element QQmlSA::Element::baseType | ( | ) | const |
Returns the Element this Element derives from.
Definition at line 936 of file qqmlsa.cpp.
| QString QQmlSA::Element::baseTypeName | ( | ) | const |
Returns the name of the Element this Element derives from.
Definition at line 944 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 1045 of file qqmlsa.cpp.
| QString QQmlSA::Element::filePath | ( | ) | const |
Returns the file path of the QML code that defines this Element.
Definition at line 1095 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 1053 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 1018 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 1112 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 1009 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 1103 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 1086 of file qqmlsa.cpp.
| bool QQmlSA::Element::inherits | ( | const Element & | element | ) | const |
Returns whether this Element inherits from element.
Definition at line 960 of file qqmlsa.cpp.
| QString QQmlSA::Element::internalId | ( | ) | const |
Definition at line 984 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 1001 of file qqmlsa.cpp.
| bool QQmlSA::Element::isFileRootComponent | ( | ) | const |
Returns whether this Element is the root component of its QML file.
Definition at line 968 of file qqmlsa.cpp.
| bool QQmlSA::Element::isNull | ( | ) | const |
Returns true if this element is null, false otherwise.
Definition at line 976 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 1036 of file qqmlsa.cpp.
| QString QQmlSA::Element::name | ( | ) | const |
Returns the name of this Element.
Definition at line 1196 of file qqmlsa.cpp.
|
explicit |
Returns true if this element is not null, false otherwise.
Definition at line 1180 of file qqmlsa.cpp.
| bool QQmlSA::Element::operator! | ( | ) | const |
Returns true if this element is null, false otherwise.
Definition at line 1188 of file qqmlsa.cpp.
Assigns other to this element instance.
Move-assigns other to this Element instance.
Definition at line 903 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 1069 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 1121 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 1130 of file qqmlsa.cpp.
| Element QQmlSA::Element::parentScope | ( | ) | const |
Returns the Element that encloses this Element.
Definition at line 952 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 1027 of file qqmlsa.cpp.
Returns this Element's property bindings that have the name propertyName.
Definition at line 1139 of file qqmlsa.cpp.
| QQmlJSScope::ScopeType QQmlSA::Element::scopeType | ( | ) | const |
Returns the type of Element's scope.
Definition at line 928 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 1077 of file qqmlsa.cpp.
|
friend |
|
friend |