Represents a QML type. 更多...
头: | #include <Element> |
Status: | Technical Preview |
QQmlSA::AccessSemantics | accessSemantics () const |
QQmlSA::Element | baseType () const |
QString | baseTypeName () const |
QQmlJS::ConstPtrWrapperIterator | childScopesBegin () const |
QQmlJS::ConstPtrWrapperIterator | childScopesEnd () const |
QString | defaultPropertyName () const |
QString | filePath () const |
bool | hasMethod (const QString & methodName ) const |
bool | hasOwnPropertyBindings (const QString & propertyName ) const |
bool | hasProperty (const QString & propertyName ) const |
bool | hasPropertyBindings (const QString & name ) const |
bool | inherits (const QQmlSA::Element & element ) const |
bool | isComposite () const |
bool | isPropertyRequired (const QString & propertyName ) const |
QString | name () const |
Method::Methods | ownMethods () const |
Binding::Bindings | ownPropertyBindings () const |
Binding::Bindings | ownPropertyBindings (const QString & propertyName ) const |
QQmlSA::Element | parentScope () const |
QQmlSA::Property | property (const QString & propertyName ) const |
QList<QQmlSA::Binding> | propertyBindings (const QString & propertyName ) const |
QQmlSA::ScopeType | scopeType () const |
QQmlSA::SourceLocation | sourceLocation () const |
Returns the access semantics of this Element. For example, Reference, Value or Sequence.
Returns the Element this Element derives from.
Returns the name of the Element this Element derives from.
Returns an iterator to the beginning of this Element's children.
Returns an iterator to the end of this Element's children.
Returns the name of the default property of this Element. If it doesn't have one, returns an empty string.
Returns the file path of the QML code that defines this method.
Returns whether this Element has a method with the name methodName .
Returns whether this Element has property bindings which are not defined in its base or extension objects and that have name propertyName .
Returns whether this Element has a property with the name propertyName .
Returns whethe this Element has a property binding with the name name .
Returns whether this Element inherits from element .
Returns true for objects defined from Qml, and false for objects declared from C++.
Returns whether the property with the name propertyName resolved on this Element is required. Returns false if the the property couldn't be found.
Returns the name of this Element.
Returns this Elements's method which are not defined on its base or extension objects.
Returns this Element's property bindings which are not defined on its base or extension objects.
Returns this Element's property bindings which are not defined on its base or extension objects and that have the name propertyName .
Returns the Element that encloses this Element.
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.
Returns this Element's property bindings that have the name propertyName .
Returns the type of Element's scope.
Returns the location in the QML code where this method is defined.