Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJSRegisterContent Class Reference

#include <qqmljsregistercontent_p.h>

+ Collaboration diagram for QQmlJSRegisterContent:

Public Types

enum  ContentVariant {
  ObjectById , Singleton , Script , MetaType ,
  JavaScriptGlobal , JavaScriptObject , JavaScriptScopeProperty , GenericObjectProperty ,
  ScopeProperty , ScopeMethod , ScopeAttached , ScopeModulePrefix ,
  ExtensionScopeProperty , ExtensionScopeMethod , ObjectProperty , ObjectMethod ,
  ObjectEnum , ObjectAttached , ObjectModulePrefix , ExtensionObjectProperty ,
  ExtensionObjectMethod , ExtensionObjectEnum , MethodReturnValue , JavaScriptReturnValue ,
  ListValue , Builtin , Unknown
}
 

Public Member Functions

 QQmlJSRegisterContent ()=default
 
bool isValid () const
 
QString descriptiveName () const
 
bool isType () const
 
bool isProperty () const
 
bool isEnumeration () const
 
bool isMethod () const
 
bool isImportNamespace () const
 
bool isConversion () const
 
bool isList () const
 
bool isWritable () const
 
QQmlJSScope::ConstPtr storedType () const
 
QQmlJSScope::ConstPtr scopeType () const
 
QQmlJSScope::ConstPtr type () const
 
QQmlJSMetaProperty property () const
 
QQmlJSMetaEnum enumeration () const
 
QString enumMember () const
 
QList< QQmlJSMetaMethodmethod () const
 
uint importNamespace () const
 
QQmlJSScope::ConstPtr conversionResult () const
 
QList< QQmlJSScope::ConstPtrconversionOrigins () const
 
ContentVariant variant () const
 
QQmlJSRegisterContent storedIn (const QQmlJSScope::ConstPtr &newStoredType) const
 

Static Public Member Functions

static QQmlJSRegisterContent create (const QQmlJSScope::ConstPtr &storedType, const QQmlJSScope::ConstPtr &type, ContentVariant variant, const QQmlJSScope::ConstPtr &scope={})
 
static QQmlJSRegisterContent create (const QQmlJSScope::ConstPtr &storedType, const QQmlJSMetaProperty &property, ContentVariant variant, const QQmlJSScope::ConstPtr &scope)
 
static QQmlJSRegisterContent create (const QQmlJSScope::ConstPtr &storedType, const QQmlJSMetaEnum &enumeration, const QString &enumMember, ContentVariant variant, const QQmlJSScope::ConstPtr &scope)
 
static QQmlJSRegisterContent create (const QQmlJSScope::ConstPtr &storedType, const QList< QQmlJSMetaMethod > &methods, ContentVariant variant, const QQmlJSScope::ConstPtr &scope)
 
static QQmlJSRegisterContent create (const QQmlJSScope::ConstPtr &storedType, uint importNamespaceStringId, ContentVariant variant, const QQmlJSScope::ConstPtr &scope={})
 
static QQmlJSRegisterContent create (const QQmlJSScope::ConstPtr &storedType, const QList< QQmlJSScope::ConstPtr > origins, const QQmlJSScope::ConstPtr &conversion, ContentVariant variant, const QQmlJSScope::ConstPtr &scope={})
 

Friends

bool operator== (const QQmlJSRegisterContent &a, const QQmlJSRegisterContent &b)
 
bool operator!= (const QQmlJSRegisterContent &a, const QQmlJSRegisterContent &b)
 
size_t qHash (const QQmlJSRegisterContent &registerContent, size_t seed=0)
 

Detailed Description

Definition at line 25 of file qqmljsregistercontent_p.h.

Member Enumeration Documentation

◆ ContentVariant

Enumerator
ObjectById 
Singleton 
Script 
MetaType 
JavaScriptGlobal 
JavaScriptObject 
JavaScriptScopeProperty 
GenericObjectProperty 
ScopeProperty 
ScopeMethod 
ScopeAttached 
ScopeModulePrefix 
ExtensionScopeProperty 
ExtensionScopeMethod 
ObjectProperty 
ObjectMethod 
ObjectEnum 
ObjectAttached 
ObjectModulePrefix 
ExtensionObjectProperty 
ExtensionObjectMethod 
ExtensionObjectEnum 
MethodReturnValue 
JavaScriptReturnValue 
ListValue 
Builtin 
Unknown 

Definition at line 28 of file qqmljsregistercontent_p.h.

Constructor & Destructor Documentation

◆ QQmlJSRegisterContent()

QQmlJSRegisterContent::QQmlJSRegisterContent ( )
default

Member Function Documentation

◆ conversionOrigins()

QList< QQmlJSScope::ConstPtr > QQmlJSRegisterContent::conversionOrigins ( ) const
inline

Definition at line 110 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::canHoldUndefined(), QQmlJSTypeResolver::convert(), QQmlJSCodeGenerator::generate_As(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ conversionResult()

QQmlJSScope::ConstPtr QQmlJSRegisterContent::conversionResult ( ) const
inline

Definition at line 105 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), QQmlJSTypeResolver::registerContains(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ create() [1/6]

QQmlJSRegisterContent QQmlJSRegisterContent::create ( const QQmlJSScope::ConstPtr storedType,
const QList< QQmlJSMetaMethod > &  methods,
QQmlJSRegisterContent::ContentVariant  variant,
const QQmlJSScope::ConstPtr scope 
)
static

Definition at line 122 of file qqmljsregistercontent.cpp.

References methods, storedType(), and variant().

+ Here is the call graph for this function:

◆ create() [2/6]

QQmlJSRegisterContent QQmlJSRegisterContent::create ( const QQmlJSScope::ConstPtr storedType,
const QList< QQmlJSScope::ConstPtr origins,
const QQmlJSScope::ConstPtr conversion,
ContentVariant  variant,
const QQmlJSScope::ConstPtr scope = {} 
)
static

Definition at line 142 of file qqmljsregistercontent.cpp.

References origins, storedType(), and variant().

+ Here is the call graph for this function:

◆ create() [3/6]

QQmlJSRegisterContent QQmlJSRegisterContent::create ( const QQmlJSScope::ConstPtr storedType,
const QQmlJSMetaEnum enumeration,
const QString enumMember,
QQmlJSRegisterContent::ContentVariant  variant,
const QQmlJSScope::ConstPtr scope 
)
static

Definition at line 111 of file qqmljsregistercontent.cpp.

References enumeration(), enumMember(), storedType(), and variant().

+ Here is the call graph for this function:

◆ create() [4/6]

QQmlJSRegisterContent QQmlJSRegisterContent::create ( const QQmlJSScope::ConstPtr storedType,
const QQmlJSMetaProperty property,
QQmlJSRegisterContent::ContentVariant  variant,
const QQmlJSScope::ConstPtr scope 
)
static

Definition at line 101 of file qqmljsregistercontent.cpp.

References property(), storedType(), and variant().

+ Here is the call graph for this function:

◆ create() [5/6]

QQmlJSRegisterContent QQmlJSRegisterContent::create ( const QQmlJSScope::ConstPtr storedType,
const QQmlJSScope::ConstPtr type,
QQmlJSRegisterContent::ContentVariant  variant,
const QQmlJSScope::ConstPtr scope = {} 
)
static

Definition at line 91 of file qqmljsregistercontent.cpp.

References storedType(), type(), and variant().

Referenced by QQmlJSTypeResolver::builtinType(), QQmlJSTypeResolver::checkEnums(), QQmlJSTypeResolver::convert(), QQmlJSTypePropagator::generate_LoadQmlContextPropertyLookup(), QQmlJSTypeResolver::globalType(), QQmlJSTypeResolver::lengthProperty(), QQmlJSTypeResolver::memberType(), QQmlJSTypeResolver::memberType(), QQmlJSTypeResolver::merge(), QQmlJSTypeResolver::registerContentForName(), QQmlJSTypeResolver::returnType(), QQmlJSTypeResolver::scopedType(), QQmlJSTypeResolver::transformed(), and QQmlJSTypeResolver::valueType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create() [6/6]

QQmlJSRegisterContent QQmlJSRegisterContent::create ( const QQmlJSScope::ConstPtr storedType,
uint  importNamespaceStringId,
QQmlJSRegisterContent::ContentVariant  variant,
const QQmlJSScope::ConstPtr scope = {} 
)
static

Definition at line 132 of file qqmljsregistercontent.cpp.

References storedType(), and variant().

+ Here is the call graph for this function:

◆ descriptiveName()

QString QQmlJSRegisterContent::descriptiveName ( ) const

Definition at line 11 of file qqmljsregistercontent.cpp.

References e, QQmlJSScope::filePath(), QQmlJSScope::internalName(), QString::isEmpty(), QDeferredSharedPointer< T >::isNull(), methods, QQmlJSMetaProperty::propertyName(), and QQmlJSMetaProperty::typeName().

Referenced by QQmlJSCodeGenerator::contentPointer(), QQmlJSCodeGenerator::contentType(), QQmlJSCodeGenerator::generate_CallPropertyLookup(), QQmlJSCodeGenerator::generate_LoadQmlContextPropertyLookup(), and QQmlJSTypePropagator::generate_Ret().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ enumeration()

QQmlJSMetaEnum QQmlJSRegisterContent::enumeration ( ) const
inline

Definition at line 94 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), create(), QQmlJSCodeGenerator::generateEnumLookup(), QQmlJSTypeResolver::registerContains(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ enumMember()

QString QQmlJSRegisterContent::enumMember ( ) const
inline

Definition at line 98 of file qqmljsregistercontent_p.h.

Referenced by create(), QQmlJSCodeGenerator::generateEnumLookup(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ importNamespace()

uint QQmlJSRegisterContent::importNamespace ( ) const
inline

Definition at line 103 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSCodeGenerator::generate_GetLookup(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ isConversion()

bool QQmlJSRegisterContent::isConversion ( ) const
inline

Definition at line 84 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSCompilePass::State::addReadRegister(), QQmlJSTypeResolver::canHoldUndefined(), QQmlJSTypeResolver::containedType(), QQmlJSTypeResolver::convert(), QQmlJSCodeGenerator::generate_As(), QQmlJSTypeResolver::registerContains(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ isEnumeration()

bool QQmlJSRegisterContent::isEnumeration ( ) const
inline

Definition at line 81 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), QQmlJSCodeGenerator::generate_GetLookup(), QQmlJSTypeResolver::registerContains(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ isImportNamespace()

bool QQmlJSRegisterContent::isImportNamespace ( ) const
inline

Definition at line 83 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), QQmlJSCodeGenerator::generate_GetLookup(), QQmlJSCodeGenerator::generate_LoadQmlContextPropertyLookup(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ isList()

bool QQmlJSRegisterContent::isList ( ) const

Definition at line 60 of file qqmljsregistercontent.cpp.

Referenced by QQmlJSCodeGenerator::generate_GetLookup(), QQmlJSCodeGenerator::generate_LoadElement(), QQmlJSTypePropagator::generate_LoadElement(), QQmlJSCodeGenerator::generate_StoreElement(), and QQmlJSTypePropagator::generate_StoreElement().

+ Here is the caller graph for this function:

◆ isMethod()

bool QQmlJSRegisterContent::isMethod ( ) const
inline

Definition at line 82 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), QQmlJSCodeGenerator::generate_GetLookup(), QQmlJSTypeResolver::registerContains(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ isProperty()

bool QQmlJSRegisterContent::isProperty ( ) const
inline

Definition at line 80 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), QQmlJSCodeGenerator::generate_GetLookup(), QQmlJSCodeGenerator::generate_LoadQmlContextPropertyLookup(), QQmlJSCodeGenerator::generate_SetLookup(), QQmlJSTypeResolver::registerContains(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ isType()

bool QQmlJSRegisterContent::isType ( ) const
inline

Definition at line 79 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), QQmlJSCodeGenerator::generate_LoadQmlContextPropertyLookup(), QQmlJSTypeResolver::registerContains(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ isValid()

bool QQmlJSRegisterContent::isValid ( ) const
inline

Definition at line 64 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypePropagator::generate_Ret(), QQmlJSCodeGenerator::generate_StoreReg(), and QQmlJSTypeResolver::memberType().

+ Here is the caller graph for this function:

◆ isWritable()

bool QQmlJSRegisterContent::isWritable ( ) const

Definition at line 77 of file qqmljsregistercontent.cpp.

◆ method()

QList< QQmlJSMetaMethod > QQmlJSRegisterContent::method ( ) const
inline

Definition at line 102 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ property()

QQmlJSMetaProperty QQmlJSRegisterContent::property ( ) const
inline

Definition at line 93 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), create(), QQmlJSTypeResolver::registerContains(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ scopeType()

QQmlJSScope::ConstPtr QQmlJSRegisterContent::scopeType ( ) const
inline

◆ storedIn()

QQmlJSRegisterContent QQmlJSRegisterContent::storedIn ( const QQmlJSScope::ConstPtr newStoredType) const
inline

Definition at line 168 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSCodeGenerator::convertContained(), and QQmlJSCodeGenerator::generate_SetLookup().

+ Here is the caller graph for this function:

◆ storedType()

QQmlJSScope::ConstPtr QQmlJSRegisterContent::storedType ( ) const
inline

Definition at line 89 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSCodeGenerator::AccumulatorConverter::AccumulatorConverter(), QQmlJSTypeResolver::canHoldUndefined(), QQmlJSCodeGenerator::changedRegisterVariable(), QQmlJSTypeResolver::containedType(), QQmlJSCodeGenerator::contentPointer(), QQmlJSCodeGenerator::contentType(), QQmlJSCodeGenerator::conversion(), QQmlJSCodeGenerator::conversion(), QQmlJSTypeResolver::convert(), QQmlJSCodeGenerator::convertContained(), create(), create(), create(), create(), create(), create(), QQmlJSCodeGenerator::generate_As(), QQmlJSCodeGenerator::generate_CallPropertyLookup(), QQmlJSCodeGenerator::generate_CmpEqNull(), QQmlJSCodeGenerator::generate_CmpNeNull(), QQmlJSCodeGenerator::generate_DefineArray(), QQmlJSCodeGenerator::generate_DefineObjectLiteral(), QQmlJSCodeGenerator::generate_GetLookup(), QQmlJSCodeGenerator::generate_JumpFalse(), QQmlJSCodeGenerator::generate_JumpTrue(), QQmlJSCodeGenerator::generate_LoadElement(), QQmlJSCodeGenerator::generate_LoadGlobalLookup(), QQmlJSCodeGenerator::generate_LoadQmlContextPropertyLookup(), QQmlJSCodeGenerator::generate_Mod(), QQmlJSCodeGenerator::generate_Ret(), QQmlJSCodeGenerator::generate_SetLookup(), QQmlJSCodeGenerator::getLookupPreparation(), QQmlJSTypeResolver::registerIsStoredIn(), QQmlJSCodeGenerator::run(), QQmlJSCodeGenerator::setLookupPreparation(), QQmlJSCodeGenerator::shouldMoveRegister(), QQmlJSCodeGenerator::startInstruction(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ type()

QQmlJSScope::ConstPtr QQmlJSRegisterContent::type ( ) const
inline

Definition at line 92 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), QQmlJSCodeGenerator::convertContained(), create(), QQmlJSTypeResolver::memberType(), QQmlJSTypeResolver::registerContains(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ variant()

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const QQmlJSRegisterContent a,
const QQmlJSRegisterContent b 
)
friend

Definition at line 74 of file qqmljsregistercontent_p.h.

◆ operator==

bool operator== ( const QQmlJSRegisterContent a,
const QQmlJSRegisterContent b 
)
friend

Definition at line 68 of file qqmljsregistercontent_p.h.

◆ qHash

size_t qHash ( const QQmlJSRegisterContent registerContent,
size_t  seed = 0 
)
friend

Definition at line 117 of file qqmljsregistercontent_p.h.


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