Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 , ListIterator , Builtin , Unknown
}
 
enum  { InvalidLookupIndex = -1 }
 

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
 
int baseLookupIndex () const
 
int resultLookupIndex () const
 
QQmlJSMetaEnum enumeration () const
 
QString enumMember () const
 
QList< QQmlJSMetaMethodmethod () const
 
uint importNamespace () const
 
QQmlJSScope::ConstPtr conversionResult () const
 
QQmlJSScope::ConstPtr conversionResultScope () const
 
QList< QQmlJSScope::ConstPtrconversionOrigins () const
 
ContentVariant variant () const
 
QQmlJSRegisterContent storedIn (const QQmlJSScope::ConstPtr &newStoredType) const
 
QQmlJSRegisterContent castTo (const QQmlJSScope::ConstPtr &newContainedType) const
 

Static Public Member Functions

static QQmlJSRegisterContent create (const QQmlJSScope::ConstPtr &storedType, const QQmlJSScope::ConstPtr &type, int resultLookupIndex, ContentVariant variant, const QQmlJSScope::ConstPtr &scope={})
 
static QQmlJSRegisterContent create (const QQmlJSScope::ConstPtr &storedType, const QQmlJSMetaProperty &property, int baseLookupIndex, int resultLookupIndex, 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, const QQmlJSScope::ConstPtr &conversionScope, 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

◆ anonymous enum

anonymous enum
Enumerator
InvalidLookupIndex 

Definition at line 64 of file qqmljsregistercontent_p.h.

◆ 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 
ListIterator 
Builtin 
Unknown 

Definition at line 28 of file qqmljsregistercontent_p.h.

Constructor & Destructor Documentation

◆ QQmlJSRegisterContent()

QQmlJSRegisterContent::QQmlJSRegisterContent ( )
default

Member Function Documentation

◆ baseLookupIndex()

int QQmlJSRegisterContent::baseLookupIndex ( ) const
inline

Definition at line 103 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ castTo()

QQmlJSRegisterContent QQmlJSRegisterContent::castTo ( const QQmlJSScope::ConstPtr & newContainedType) const
inline

Definition at line 209 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::cast().

+ Here is the caller graph for this function:

◆ conversionOrigins()

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

Definition at line 139 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::canHoldUndefined(), QQmlJSTypeResolver::convert(), QQmlJSTypeResolver::extractNonVoidFromOptionalType(), QQmlJSTypeResolver::isOptionalType(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ conversionResult()

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

Definition at line 129 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ conversionResultScope()

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

Definition at line 134 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::convert(), 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 134 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,
const QQmlJSScope::ConstPtr & conversionScope,
ContentVariant variant,
const QQmlJSScope::ConstPtr & scope = {} )
static

Definition at line 154 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 123 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,
int baseLookupIndex,
int resultLookupIndex,
QQmlJSRegisterContent::ContentVariant variant,
const QQmlJSScope::ConstPtr & scope )
static

Definition at line 112 of file qqmljsregistercontent.cpp.

References baseLookupIndex(), property(), resultLookupIndex(), 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,
int resultLookupIndex,
QQmlJSRegisterContent::ContentVariant variant,
const QQmlJSScope::ConstPtr & scope = {} )
static

◆ create() [6/6]

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

Definition at line 144 of file qqmljsregistercontent.cpp.

References storedType(), and variant().

+ Here is the call graph for this function:

◆ descriptiveName()

◆ enumeration()

QQmlJSMetaEnum QQmlJSRegisterContent::enumeration ( ) const
inline

Definition at line 118 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ enumMember()

QString QQmlJSRegisterContent::enumMember ( ) const
inline

Definition at line 122 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 127 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ isConversion()

bool QQmlJSRegisterContent::isConversion ( ) const
inline

Definition at line 87 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::canHoldUndefined(), QQmlJSTypeResolver::containedType(), QQmlJSTypeResolver::convert(), QQmlJSCodeGenerator::generate_LoadElement(), QQmlJSTypeResolver::isOptionalType(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ isEnumeration()

bool QQmlJSRegisterContent::isEnumeration ( ) const
inline

Definition at line 84 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ isImportNamespace()

bool QQmlJSRegisterContent::isImportNamespace ( ) const
inline

Definition at line 86 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ isList()

bool QQmlJSRegisterContent::isList ( ) const

Definition at line 70 of file qqmljsregistercontent.cpp.

References Property::type.

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

+ Here is the caller graph for this function:

◆ isMethod()

bool QQmlJSRegisterContent::isMethod ( ) const
inline

Definition at line 85 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ isProperty()

bool QQmlJSRegisterContent::isProperty ( ) const
inline

Definition at line 83 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ isType()

bool QQmlJSRegisterContent::isType ( ) const
inline

Definition at line 82 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ isValid()

bool QQmlJSRegisterContent::isValid ( ) const
inline

◆ isWritable()

bool QQmlJSRegisterContent::isWritable ( ) const

Definition at line 87 of file qqmljsregistercontent.cpp.

◆ method()

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

Definition at line 126 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 99 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ resultLookupIndex()

int QQmlJSRegisterContent::resultLookupIndex ( ) const
inline

Definition at line 107 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSCodeGenerator::changedRegisterVariable(), create(), create(), QQmlJSCodeGenerator::registerVariable(), QQmlJSCompilePass::State::setRegister(), QQmlJSCodeGenerator::startInstruction(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ scopeType()

◆ storedIn()

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

Definition at line 202 of file qqmljsregistercontent_p.h.

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

+ Here is the caller graph for this function:

◆ storedType()

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

Definition at line 92 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_Construct(), QQmlJSCodeGenerator::generate_DefineObjectLiteral(), QQmlJSCodeGenerator::generate_GetOptionalLookup(), QQmlJSCodeGenerator::generate_JumpFalse(), QQmlJSCodeGenerator::generate_JumpTrue(), QQmlJSCodeGenerator::generate_LoadElement(), QQmlJSCodeGenerator::generate_LoadGlobalLookup(), QQmlJSCodeGenerator::generate_LoadQmlContextPropertyLookup(), QQmlJSTypePropagator::generate_LoadQmlContextPropertyLookup(), QQmlJSCodeGenerator::generate_Mod(), QQmlJSCodeGenerator::generate_Ret(), QQmlJSCodeGenerator::generate_SetLookup(), QQmlJSCodeGenerator::generate_StoreElement(), QQmlJSCodeGenerator::getLookupPreparation(), QQmlJSCodeGenerator::registerVariable(), 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 95 of file qqmljsregistercontent_p.h.

Referenced by QQmlJSTypeResolver::containedType(), QQmlJSCodeGenerator::convertContained(), QQmlJSTypeResolver::memberType(), propertyBindingFromReferrerScope(), QQmlJSUtils::resolveAlias(), resolveIdentifierExpressionType(), 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 77 of file qqmljsregistercontent_p.h.

◆ operator==

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

Definition at line 71 of file qqmljsregistercontent_p.h.

◆ qHash

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

Definition at line 146 of file qqmljsregistercontent_p.h.


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