Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlJS::Dom::EnumDecl Class Referencefinal

#include <qqmldomelements_p.h>

+ Inheritance diagram for QQmlJS::Dom::EnumDecl:
+ Collaboration diagram for QQmlJS::Dom::EnumDecl:

Public Member Functions

DomType kind () const override
 
 EnumDecl (const QString &name=QString(), QList< EnumItem > values=QList< EnumItem >(), Path pathFromOwner=Path())
 
bool iterateDirectSubpaths (const DomItem &self, DirectVisitor visitor) const override
 
QString name () const
 
void setName (const QString &name)
 
const QList< EnumItem > & values () const &
 
bool isFlag () const
 
void setIsFlag (bool flag)
 
QString alias () const
 
void setAlias (const QString &aliasName)
 
void setValues (QList< EnumItem > values)
 
Path addValue (EnumItem value)
 
void updatePathFromOwner (const Path &newP) override
 
const QList< QmlObject > & annotations () const &
 
void setAnnotations (const QList< QmlObject > &annotations)
 
Path addAnnotation (const QmlObject &child, QmlObject **cPtr=nullptr)
 
void writeOut (const DomItem &self, OutWriter &lw) const override
 
- Public Member Functions inherited from QQmlJS::Dom::CommentableDomElement
 CommentableDomElement (const Path &pathFromOwner=Path())
 
 CommentableDomElement (const CommentableDomElement &o)
 
CommentableDomElementoperator= (const CommentableDomElement &o)=default
 
RegionCommentscomments ()
 
const RegionCommentscomments () const
 
- Public Member Functions inherited from QQmlJS::Dom::DomElement
 DomElement (const Path &pathFromOwner=Path())
 
 DomElement (const DomElement &o)=default
 
Path pathFromOwner (const DomItem &self) const override
 
Path pathFromOwner () const
 
Path canonicalPath (const DomItem &self) const override
 
DomItem containingObject (const DomItem &self) const override
 
- Public Member Functions inherited from QQmlJS::Dom::DomBase
virtual ~DomBase ()=default
 
DomBasedomBase ()
 
const DomBasedomBase () const
 
virtual DomKind domKind () const
 
bool iterateDirectSubpathsConst (const DomItem &self, DirectVisitor) const
 
virtual void dump (const DomItem &, const Sink &sink, int indent, FilterT filter) const
 
virtual quintptr id () const
 
QString typeName () const
 
virtual QList< QStringfields (const DomItem &self) const
 
virtual DomItem field (const DomItem &self, QStringView name) const
 
virtual index_type indexes (const DomItem &self) const
 
virtual DomItem index (const DomItem &self, index_type index) const
 
virtual QSet< QString > const keys (const DomItem &self) const
 
virtual DomItem key (const DomItem &self, const QString &name) const
 
virtual QString canonicalFilePath (const DomItem &self) const
 
virtual QCborValue value () const
 

Static Public Attributes

static constexpr DomType kindValue = DomType::EnumDecl
 

Additional Inherited Members

- Public Types inherited from QQmlJS::Dom::DomBase
using FilterT = function_ref<bool(const DomItem &, const PathEls::PathComponent &, const DomItem &)>
 
- Protected Member Functions inherited from QQmlJS::Dom::DomElement
DomElementoperator= (const DomElement &)=default
 

Detailed Description

Definition at line 822 of file qqmldomelements_p.h.

Constructor & Destructor Documentation

◆ EnumDecl()

QQmlJS::Dom::EnumDecl::EnumDecl ( const QString & name = QString(),
QList< EnumItem > values = QList<EnumItem>(),
Path pathFromOwner = Path() )
inline

Definition at line 828 of file qqmldomelements_p.h.

References QQmlJS::Dom::CommentableDomElement::CommentableDomElement(), and EnumDecl().

Referenced by EnumDecl().

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

Member Function Documentation

◆ addAnnotation()

Path QQmlJS::Dom::EnumDecl::addAnnotation ( const QmlObject & child,
QmlObject ** cPtr = nullptr )

◆ addValue()

Path QQmlJS::Dom::EnumDecl::addValue ( EnumItem value)
inline

Definition at line 844 of file qqmldomelements_p.h.

◆ alias()

QString QQmlJS::Dom::EnumDecl::alias ( ) const
inline

Definition at line 841 of file qqmldomelements_p.h.

◆ annotations()

const QList< QmlObject > & QQmlJS::Dom::EnumDecl::annotations ( ) const &
inline

Definition at line 851 of file qqmldomelements_p.h.

◆ isFlag()

bool QQmlJS::Dom::EnumDecl::isFlag ( ) const
inline

Definition at line 839 of file qqmldomelements_p.h.

◆ iterateDirectSubpaths()

bool QQmlJS::Dom::EnumDecl::iterateDirectSubpaths ( const DomItem & self,
DirectVisitor visitor ) const
overridevirtual

◆ kind()

DomType QQmlJS::Dom::EnumDecl::kind ( ) const
inlineoverridevirtual

Implements QQmlJS::Dom::DomBase.

Definition at line 826 of file qqmldomelements_p.h.

References kindValue.

◆ name()

QString QQmlJS::Dom::EnumDecl::name ( ) const
inline

Definition at line 836 of file qqmldomelements_p.h.

Referenced by testing.tools.encode_pdf_filter._PdfStream::RegisterByName().

+ Here is the caller graph for this function:

◆ setAlias()

void QQmlJS::Dom::EnumDecl::setAlias ( const QString & aliasName)
inline

Definition at line 842 of file qqmldomelements_p.h.

◆ setAnnotations()

void QQmlJS::Dom::EnumDecl::setAnnotations ( const QList< QmlObject > & annotations)

◆ setIsFlag()

void QQmlJS::Dom::EnumDecl::setIsFlag ( bool flag)
inline

Definition at line 840 of file qqmldomelements_p.h.

◆ setName()

void QQmlJS::Dom::EnumDecl::setName ( const QString & name)
inline

Definition at line 837 of file qqmldomelements_p.h.

◆ setValues()

void QQmlJS::Dom::EnumDecl::setValues ( QList< EnumItem > values)
inline

Definition at line 843 of file qqmldomelements_p.h.

◆ updatePathFromOwner()

void QQmlJS::Dom::EnumDecl::updatePathFromOwner ( const Path & newP)
overridevirtual

Reimplemented from QQmlJS::Dom::DomElement.

◆ values()

const QList< EnumItem > & QQmlJS::Dom::EnumDecl::values ( ) const &
inline

Definition at line 838 of file qqmldomelements_p.h.

◆ writeOut()

void QQmlJS::Dom::EnumDecl::writeOut ( const DomItem & self,
OutWriter & lw ) const
overridevirtual

Reimplemented from QQmlJS::Dom::DomBase.

Member Data Documentation

◆ kindValue

DomType QQmlJS::Dom::EnumDecl::kindValue = DomType::EnumDecl
staticconstexpr

Definition at line 825 of file qqmldomelements_p.h.

Referenced by kind().


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