Qt 4.8
Public Functions | Public Variables | List of all members
QDeclarativeParser::Property Class Reference

#include <qdeclarativeparser_p.h>

Inheritance diagram for QDeclarativeParser::Property:
QDeclarativeRefCount

Public Functions

void addOnValue (Value *v)
 
void addValue (Value *v)
 
ObjectgetValue (const LocationSpan &)
 
bool isEmpty () const
 
 Property ()
 
 Property (const QByteArray &n)
 
virtual ~Property ()
 
- Public Functions inherited from QDeclarativeRefCount
void addref ()
 
 QDeclarativeRefCount ()
 
void release ()
 
virtual ~QDeclarativeRefCount ()
 

Public Variables

int index
 
bool isAlias
 
bool isDefault
 
bool isDeferred
 
bool isValueTypeSubProperty
 
QList< int > listCommaPositions
 
LocationRange listValueRange
 
LocationSpan location
 
QByteArray name
 
QList< Value * > onValues
 
Objectparent
 
int type
 
Objectvalue
 
QList< Value * > values
 

Detailed Description

Definition at line 323 of file qdeclarativeparser_p.h.

Constructors and Destructors

◆ Property() [1/2]

QDeclarativeParser::Property::Property ( )

◆ Property() [2/2]

QDeclarativeParser::Property::Property ( const QByteArray n)

◆ ~Property()

QDeclarativeParser::Property::~Property ( )
virtual

Definition at line 224 of file qdeclarativeparser.cpp.

225 {
226  foreach(Value *value, values)
227  value->release();
228  foreach(Value *value, onValues)
229  value->release();
230  if (value) value->release();
231 }

Functions

◆ addOnValue()

void QDeclarativeParser::Property::addOnValue ( Value v)

Definition at line 244 of file qdeclarativeparser.cpp.

245 {
246  onValues << v;
247 }

◆ addValue()

void QDeclarativeParser::Property::addValue ( Value v)

Definition at line 239 of file qdeclarativeparser.cpp.

Referenced by QDeclarativeCompiler::buildPropertyObjectAssignment().

240 {
241  values << v;
242 }

◆ getValue()

QDeclarativeParser::Object * QDeclarativeParser::Property::getValue ( const LocationSpan l)

Definition at line 233 of file qdeclarativeparser.cpp.

234 {
236  return value;
237 }
QFactoryLoader * l

◆ isEmpty()

bool QDeclarativeParser::Property::isEmpty ( ) const

Definition at line 249 of file qdeclarativeparser.cpp.

Referenced by QDeclarativeCompiler::buildProperty().

250 {
251  return !value && values.isEmpty() && onValues.isEmpty();
252 }

Properties

◆ index

int QDeclarativeParser::Property::index

◆ isAlias

bool QDeclarativeParser::Property::isAlias

◆ isDefault

bool QDeclarativeParser::Property::isDefault

◆ isDeferred

bool QDeclarativeParser::Property::isDeferred

◆ isValueTypeSubProperty

bool QDeclarativeParser::Property::isValueTypeSubProperty

◆ listCommaPositions

QList<int> QDeclarativeParser::Property::listCommaPositions

◆ listValueRange

LocationRange QDeclarativeParser::Property::listValueRange

◆ location

LocationSpan QDeclarativeParser::Property::location

◆ name

QByteArray QDeclarativeParser::Property::name

◆ onValues

QList<Value *> QDeclarativeParser::Property::onValues

◆ parent

Object* QDeclarativeParser::Property::parent

◆ type

int QDeclarativeParser::Property::type

◆ value

Object* QDeclarativeParser::Property::value

◆ values

QList<Value *> QDeclarativeParser::Property::values

The documentation for this class was generated from the following files: