Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJS::Dom::PathEls::Root Class Referencefinal

#include <qqmldompath_p.h>

+ Inheritance diagram for QQmlJS::Dom::PathEls::Root:
+ Collaboration diagram for QQmlJS::Dom::PathEls::Root:

Public Member Functions

 Root ()=default
 
 Root (PathRoot r)
 
 Root (QStringView n)
 
Kind kind () const override
 
QString name () const override
 
bool checkName (QStringView s) const override
 
QStringView stringView () const override
 
void dump (Sink sink) const override
 
const RootasRoot () const override
 
- Public Member Functions inherited from QQmlJS::Dom::PathEls::Base
virtual ~Base ()=default
 
virtual Kind kind () const =0
 
virtual QString name () const =0
 
virtual bool checkName (QStringView s) const =0
 
virtual QStringView stringView () const
 
virtual index_type index (index_type defaultValue=-1) const
 
virtual void dump (Sink sink) const
 
virtual bool hasSquareBrackets () const
 
virtual const EmptyasEmpty () const
 
virtual const FieldasField () const
 
virtual const IndexasIndex () const
 
virtual const KeyasKey () const
 
virtual const RootasRoot () const
 
virtual const CurrentasCurrent () const
 
virtual const AnyasAny () const
 
virtual const FilterasFilter () const
 

Public Attributes

PathRoot contextKind = PathRoot::Other
 
QStringView contextName
 

Detailed Description

Definition at line 153 of file qqmldompath_p.h.

Constructor & Destructor Documentation

◆ Root() [1/3]

QQmlJS::Dom::PathEls::Root::Root ( )
default

◆ Root() [2/3]

QQmlJS::Dom::PathEls::Root::Root ( PathRoot  r)
inline

Definition at line 157 of file qqmldompath_p.h.

◆ Root() [3/3]

QQmlJS::Dom::PathEls::Root::Root ( QStringView  n)
inline

Definition at line 158 of file qqmldompath_p.h.

References Qt::CaseInsensitive, contextKind, contextName, QString::fromUtf8(), i, QMetaEnum::key(), QMetaEnum::keyCount(), QQmlJS::Dom::Other, and QMetaEnum::value().

+ Here is the call graph for this function:

Member Function Documentation

◆ asRoot()

const Root * QQmlJS::Dom::PathEls::Root::asRoot ( ) const
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::PathEls::Base.

Definition at line 197 of file qqmldompath_p.h.

Referenced by QQmlJS::Dom::Path::headRoot().

+ Here is the caller graph for this function:

◆ checkName()

bool QQmlJS::Dom::PathEls::Root::checkName ( QStringView  s) const
inlineoverridevirtual

Implements QQmlJS::Dom::PathEls::Base.

Definition at line 188 of file qqmldompath_p.h.

References Qt::CaseInsensitive, contextKind, contextName, QChar::fromLatin1(), name(), and QQmlJS::Dom::Other.

+ Here is the call graph for this function:

◆ dump()

void QQmlJS::Dom::PathEls::Root::dump ( Sink  sink) const
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::PathEls::Base.

Definition at line 194 of file qqmldompath_p.h.

References name().

+ Here is the call graph for this function:

◆ kind()

Kind QQmlJS::Dom::PathEls::Root::kind ( ) const
inlineoverridevirtual

Implements QQmlJS::Dom::PathEls::Base.

Definition at line 167 of file qqmldompath_p.h.

References QQmlJS::Dom::PathEls::Root.

◆ name()

QString QQmlJS::Dom::PathEls::Root::name ( ) const
inlineoverridevirtual

Implements QQmlJS::Dom::PathEls::Base.

Definition at line 168 of file qqmldompath_p.h.

References QString::append(), contextKind, contextName, QQmlJS::Dom::Cpp, QQmlJS::Dom::Env, QString::fromUtf8(), QQmlJS::Dom::Libs, QQmlJS::Dom::Modules, QQmlJS::Dom::Other, Q_ASSERT, QStringLiteral, QQmlJS::Dom::Top, QStringView::toString(), and QQmlJS::Dom::Universe.

Referenced by checkName(), and dump().

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

◆ stringView()

QStringView QQmlJS::Dom::PathEls::Root::stringView ( ) const
inlineoverridevirtual

Reimplemented from QQmlJS::Dom::PathEls::Base.

Definition at line 193 of file qqmldompath_p.h.

References contextName.

Member Data Documentation

◆ contextKind

PathRoot QQmlJS::Dom::PathEls::Root::contextKind = PathRoot::Other

Definition at line 199 of file qqmldompath_p.h.

Referenced by Root(), checkName(), and name().

◆ contextName

QStringView QQmlJS::Dom::PathEls::Root::contextName

Definition at line 200 of file qqmldompath_p.h.

Referenced by Root(), checkName(), name(), and stringView().


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