42 #include "private/qdeclarativedom_p.h" 43 #include "private/qdeclarativedom_p_p.h" 45 #include "private/qdeclarativecompiler_p.h" 46 #include "private/qdeclarativeengine_p.h" 47 #include "private/qdeclarativescriptparser_p.h" 48 #include "private/qdeclarativeglobal_p.h" 50 #include <QtCore/QByteArray> 51 #include <QtCore/QDebug> 52 #include <QtCore/QString> 169 domImport.
d->
uri = parserImport.
uri;
596 if (
object)
object->release();
606 iter !=
object->properties.end();
620 if (property->
value) {
624 iter !=
property->value->properties.end();
633 iter->second.prepend(name);
794 for (
int ii = 0; ii < properties.
count(); ++ii) {
829 for (
int ii = 0; ii < props.
count(); ++ii)
1375 switch(value->
type) {
Type
The type of the QDeclarativeDomValue node.
~QDeclarativeDomValueValueSource()
Destroy the QDeclarativeDomValueValueSource.
bool isError() const
Returns true if the status is Error.
QString binding() const
Return the binding expression.
The QHash::const_iterator class provides an STL-style const iterator for QHash and QMultiHash...
QString literal() const
Return the literal value.
The QDeclarativeDomProperty class represents one property assignment in the QML DOM tree...
bool isDefaultProperty() const
Return true if this property is used as a default property in the QML document.
QDeclarativeDomPropertyPrivate()
#define QT_END_NAMESPACE
This macro expands to.
~QDeclarativeDomList()
Destroy the QDeclarativeDomList.
bool isValid() const
Returns true if this is a valid QDeclarativeDomObject, false otherwise.
QDeclarativeDomDocumentPrivate()
~QDeclarativeDomProperty()
Destroy the QDeclarativeDomProperty.
void setDescription(const QString &)
Sets the error description.
int position() const
Returns the position in the input data where the list started, or -1 if the property is invalid...
The QDeclarativeDomImport class represents an import statement.
The QDeclarativeDomList class represents a list of values assigned to a QML property.
~QDeclarativeDomValuePrivate()
~QDeclarativeDomImport()
Destroy the QDeclarativeDomImport.
int position() const
Returns the position in the input data where the property value startd, or -1 if the value is invalid...
QDeclarativeDomValueValueSource()
Construct an empty QDeclarativeDomValueValueSource.
bool isObject() const
Returns true if this is an object value, otherwise false.
QList< QDeclarativeDomProperty > properties() const
Returns the list of assigned properties on this object.
QDeclarativeParser::Value * value
QDeclarativeParser::Object * root
bool isComponent() const
Returns true if this object is a sub-component object.
QSharedDataPointer< QDeclarativeDomImportPrivate > d
QList< int > listCommaPositions
QList< QDeclarativeError > errors() const
Returns the last load errors.
The QByteArray class provides an array of bytes.
QDeclarativeDomValueValueSource & operator=(const QDeclarativeDomValueValueSource &)
Assign other to this QDeclarativeDomValueValueSource.
QDeclarativeDomObject()
Construct an invalid QDeclarativeDomObject.
QDeclarativeDomComponent & operator=(const QDeclarativeDomComponent &)
Assign other to this QDeclarativeDomComponent.
QSharedDataPointer< QDeclarativeDomValuePrivate > d
QByteArray propertyName() const
Return the name of this dynamic property.
QDeclarativeDomDynamicPropertyPrivate()
bool isInvalid() const
Returns true if this is an invalid value, otherwise false.
QDeclarativeDomList toList() const
Returns a QDeclarativeDomList if this value is a list type, otherwise returns an invalid QDeclarative...
iterator begin()
Returns an STL-style iterator pointing to the first item in the list.
The QDeclarativeDomDocument class represents the root of a QML document.
QDeclarativeDomObject toObject() const
Returns a QDeclarativeDomObject if this value is an object assignment type, otherwise returns an inva...
QDeclarativeDomValue value() const
Returns the QDeclarativeDomValue that is assigned to this property, or an invalid QDeclarativeDomValu...
int objectTypeMajorVersion() const
Property * defaultProperty
~QDeclarativeDomObjectPrivate()
bool isCompleteOrError() const
Returns true if the status is Complete or Error.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QDeclarativeDomDynamicProperty()
Construct an invalid QDeclarativeDomDynamicProperty.
int count(const T &t) const
Returns the number of occurrences of value in the list.
QDeclarativeDomDynamicProperty & operator=(const QDeclarativeDomDynamicProperty &)
Assign other to this QDeclarativeDomDynamicProperty.
QDeclarativeDomObject object() const
Return the value source object.
QList< Import > imports() const
The QUrl class provides a convenient interface for working with URLs.
QDeclarativeTypeLoader typeLoader
The QString class provides a Unicode character string.
QDeclarativeDomValueValueInterceptor()
Construct an empty QDeclarativeDomValueValueInterceptor.
QList< QDeclarativeError > errors
Type type() const
Returns the type of the import.
~QDeclarativeDomValueLiteral()
Destroy the QDeclarativeDomValueLiteral.
~QDeclarativeDomPropertyPrivate()
The QDeclarativeDomValueBinding class represents a property binding.
~QDeclarativeDomValueValueInterceptor()
Destroy the QDeclarativeDomValueValueInterceptor.
int position() const
Returns the position in the input data where the property assignment started , or -1 if the property...
QDeclarativeDomValue()
Construct an invalid QDeclarativeDomValue.
QDeclarativeDomValueLiteral()
Construct an empty QDeclarativeDomValueLiteral.
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
int length() const
Returns the length in the input data from where the property assignment star ted upto the end of it...
LocationRange listValueRange
The QDeclarativeDomValue class represents a generic Qml value.
The QDeclarativeDomComponent class represents sub-component within a QML document.
QDeclarativeDomValueValueSource toValueSource() const
Returns a QDeclarativeDomValueValueSource if this value is a property value source type...
QDeclarativeParser::Object::DynamicProperty property
QDeclarativeParser::Object * object
int length() const
Returns the length in the input data from where the property ID started upto the end of it...
QSharedDataPointer< QDeclarativeDomObjectPrivate > d
QByteArray propertyName() const
Return the name of this property.
QDeclarativeDomImportPrivate()
int propertyType() const
Returns the type of the dynamic property.
bool isBinding() const
Returns true if this is a property binding value, otherwise false.
QList< int > commaPositions() const
Returns a list of positions of the commas in the QML file.
bool isValueSource() const
Returns true if this is a value source value, otherwise false.
void append(const T &t)
Inserts value at the end of the list.
QDeclarativeDomDocument & operator=(const QDeclarativeDomDocument &)
Assign other to this QDeclarativeDomDocument.
~QDeclarativeDomValue()
Destroy the QDeclarativeDomValue.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDeclarativeDomObjectPrivate()
int length() const
Returns the length in the input data from where the property ID started upto the end of it...
~QDeclarativeDomDynamicPropertyPrivate()
Type type() const
Returns the type of this QDeclarativeDomValue.
QSharedDataPointer< QDeclarativeDomValuePrivate > d
QDeclarativeDomValueValueInterceptor toValueInterceptor() const
Returns a QDeclarativeDomValueValueInterceptor if this value is a property value interceptor type...
QList< DynamicProperty > dynamicProperties
QDeclarativeDomValueBinding toBinding() const
Returns a QDeclarativeDomValueBinding if this value is a property binding type, otherwise returns an ...
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the list...
const T & at(int i) const
Returns the item at index position i in the list.
QString uri() const
Returns the URI of the import (e.g.
QDeclarativeDomValueLiteral toLiteral() const
Returns a QDeclarativeDomValueLiteral if this value is a literal type, otherwise returns an invalid Q...
QString version() const
Returns the version specified by the import.
bool isValid() const
Returns true if this is a valid QDeclarativeDomProperty, false otherwise.
~QDeclarativeDomObject()
Destroy the QDeclarativeDomObject.
QSharedDataPointer< QDeclarativeDomDocumentPrivate > d
static const char * data(const QByteArray &arr)
QString primitive() const
The QDeclarativeError class encapsulates a QML error.
int position() const
Returns the position in the input data where the property ID startd, or -1 if the property is invalid...
QDeclarativeDomValue & operator=(const QDeclarativeDomValue &)
Assign other to this QDeclarativeDomValue.
QDeclarativeDomProperty()
Construct an invalid QDeclarativeDomProperty.
void clear()
Removes all items from the list.
QByteArray objectClassName() const
Returns the type name as referenced in the qml file.
QDeclarativeDomValueBinding()
Construct an empty QDeclarativeDomValueBinding.
int position() const
Returns the position in the input data where the property ID startd, or 0 if the property is invalid...
QDeclarativeDomValuePrivate()
QDeclarativeDomValueValueInterceptor & operator=(const QDeclarativeDomValueValueInterceptor &)
Assign other to this QDeclarativeDomValueValueInterceptor.
QDeclarativeDomProperty property(const QByteArray &) const
Returns the object's name property if a value has been assigned to it, or an invalid QDeclarativeDomP...
The QList::iterator class provides an STL-style non-const iterator for QList and QQueue.
bool isList() const
Returns true if this is a list value, otherwise false.
int objectTypeMinorVersion() const
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d
QSharedDataPointer< QDeclarativeDomPropertyPrivate > d
QDeclarativeDomObject componentRoot() const
Returns the component's root object.
QList< QDeclarativeDomValue > values() const
Returns the list of QDeclarativeDomValue's.
QList< QByteArray > split(char sep) const
Splits the byte array into subarrays wherever sep occurs, and returns the list of those arrays...
QDeclarativeDomValueLiteral & operator=(const QDeclarativeDomValueLiteral &)
Assign other to this QDeclarativeDomValueLiteral.
bool isDefaultProperty() const
Return true if this property is used as a default property in the QML document.
int length() const
Returns the length in the input data from where the property value started u pto the end of it...
QDeclarativeDomProperty defaultValue() const
Returns the default value as a QDeclarativeDomProperty.
QDeclarativeDomBasicValuePrivate()
QDeclarativeDomImport & operator=(const QDeclarativeDomImport &)
Assign other to this QDeclarativeDomImport.
~QDeclarativeDomDynamicProperty()
Destroy the QDeclarativeDomDynamicProperty.
QDeclarativeParser::Property * property
~QDeclarativeDomComponent()
Destroy the QDeclarativeDomComponent.
QList< QDeclarativeError > errors() const
Return the errors on this blob.
QList< QDeclarativeDomDynamicProperty > dynamicProperties() const
QList< QByteArray > propertyNameParts() const
Return the name of this property, split into multiple parts in the case of dot properties.
The QDeclarativeEngine class provides an environment for instantiating QML components.
QByteArray objectType() const
Returns the fully-qualified type name of this object.
QDeclarativeDomComponent()
Construct an empty QDeclarativeDomComponent.
The QDeclarativeDomValueLiteral class represents a literal value.
The QDeclarativeDomValueValueInterceptor class represents a value interceptor assignment value...
QDeclarativeDomDynamicProperty dynamicProperty(const QByteArray &) const
bool load(QDeclarativeEngine *, const QByteArray &, const QUrl &=QUrl())
Loads a QDeclarativeDomDocument from data.
QDeclarativeDomObject & operator=(const QDeclarativeDomObject &)
Assign other to this QDeclarativeDomObject.
Q_OUTOFLINE_TEMPLATE QPair< T1, T2 > qMakePair(const T1 &x, const T2 &y)
QDeclarativeDomList & operator=(const QDeclarativeDomList &)
Assign other to this QDeclarativeDomList.
int length() const
Returns the length in the input data from where the list started upto the end of it, or 0 if the property is invalid.
QSharedDataPointer< QDeclarativeDomDynamicPropertyPrivate > d
QDeclarativeDomDocument()
Construct an empty QDeclarativeDomDocument.
Properties properties() const
QByteArray propertyTypeName() const
~QDeclarativeDomImportPrivate()
The QDeclarativeDomObject class represents an object instantiation.
~QDeclarativeDomDocument()
Destroy the QDeclarativeDomDocument.
QString objectId() const
Returns the QML id assigned to this object, or an empty QByteArray if no id has been assigned...
QDeclarativeDomProperty & operator=(const QDeclarativeDomProperty &)
Assign other to this QDeclarativeDomProperty.
~QDeclarativeDomBasicValuePrivate()
QDeclarativeTypeData * get(const QUrl &url)
Returns a QDeclarativeTypeData for the specified url.
bool isCustomType() const
Returns true if this object is a custom type.
bool isLiteral() const
Returns true if this is a literal value, otherwise false.
QDeclarativeParser::Property * property
QDeclarativeDomValueBinding & operator=(const QDeclarativeDomValueBinding &)
Assign other to this QDeclarativeDomValueBinding.
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
The QDeclarativeDomValueValueSource class represents a value source assignment value.
const QDeclarativeScriptParser & parser() const
QList< QDeclarativeDomImport > imports() const
Returns all import statements in qml.
QByteArray customTypeData() const
If this object represents a custom type, returns the data associated with the custom type...
QDeclarativeDomImport()
Construct an empty QDeclarativeDomImport.
QString qualifier() const
Returns the (optional) qualifier string (the token following the 'as' keyword) of the import...
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d
QDeclarativeDomObject object() const
Return the value interceptor object.
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d
QDeclarativeDomList()
Construct an empty QDeclarativeDomList.
~QDeclarativeDomValueBinding()
Destroy the QDeclarativeDomValueBinding.
QDeclarativeDomObject rootObject() const
Returns the document's root object, or an invalid QDeclarativeDomObject if the document has no root...
bool isAlias() const
Returns true if this dynamic property is an alias for another property, false otherwise.
QDeclarativeParser::Object * tree() const
QDeclarativeParser::Value * value
QDeclarativeDomComponent toComponent() const
Returns a QDeclarativeDomComponent for this object if it is a sub-component, or an invalid QDeclarati...
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > d
QHash< QByteArray, Property * > properties
bool isValueInterceptor() const
Returns true if this is a value interceptor value, otherwise false.
~QDeclarativeDomDocumentPrivate()
QList< Value * > onValues
QDeclarativeParser::Property * defaultValue
QList< QDeclarativeDomImport > imports