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
QQmlJS::Dom::MethodInfo Class Reference

#include <qqmldomelements_p.h>

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

Public Types

enum  MethodType { Signal , Method }
 
- Public Types inherited from QQmlJS::Dom::AttributeInfo
enum  Access { Private , Protected , Public }
 

Public Member Functions

Path typePath (const DomItem &) const
 
bool iterateDirectSubpaths (const DomItem &self, DirectVisitor visitor) const
 
QString preCode (const DomItem &) const
 
QString postCode (const DomItem &) const
 
void writePre (const DomItem &self, OutWriter &ow) const
 
void writeOut (const DomItem &self, OutWriter &ow) const
 
void setCode (const QString &code)
 
 MethodInfo ()=default
 
- Public Member Functions inherited from QQmlJS::Dom::AttributeInfo
bool iterateDirectSubpaths (const DomItem &self, DirectVisitor visitor) const
 
Path addAnnotation (const Path &selfPathFromOwner, const QmlObject &annotation, QmlObject **aPtr=nullptr)
 
void updatePathFromOwner (const Path &newPath)
 
QQmlJSScope::ConstPtr semanticScope () const
 
void setSemanticScope (const QQmlJSScope::ConstPtr &scope)
 

Public Attributes

QList< MethodParameterparameters
 
MethodType methodType = Method
 
std::shared_ptr< ScriptExpressionbody
 
std::shared_ptr< ScriptExpressionreturnType
 
bool isConstructor = false
 
- Public Attributes inherited from QQmlJS::Dom::AttributeInfo
QString name
 
Access access = Access::Public
 
QString typeName
 
bool isReadonly = false
 
bool isList = false
 
QList< QmlObjectannotations
 
RegionComments comments
 
QQmlJSScope::ConstPtr m_semanticScope
 

Static Public Attributes

static constexpr DomType kindValue = DomType::MethodInfo
 

Detailed Description

Definition at line 744 of file qqmldomelements_p.h.

Member Enumeration Documentation

◆ MethodType

Enumerator
Signal 
Method 

Definition at line 748 of file qqmldomelements_p.h.

Constructor & Destructor Documentation

◆ MethodInfo()

QQmlJS::Dom::MethodInfo::MethodInfo ( )
default

Member Function Documentation

◆ iterateDirectSubpaths()

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

◆ postCode()

QString QQmlJS::Dom::MethodInfo::postCode ( const DomItem & ) const

◆ preCode()

QString QQmlJS::Dom::MethodInfo::preCode ( const DomItem & ) const

◆ setCode()

void QQmlJS::Dom::MethodInfo::setCode ( const QString & code)
inline

Definition at line 763 of file qqmldomelements_p.h.

◆ typePath()

Path QQmlJS::Dom::MethodInfo::typePath ( const DomItem & ) const
inline

Definition at line 753 of file qqmldomelements_p.h.

References typeName.

◆ writeOut()

void QQmlJS::Dom::MethodInfo::writeOut ( const DomItem & self,
OutWriter & ow ) const

◆ writePre()

void QQmlJS::Dom::MethodInfo::writePre ( const DomItem & self,
OutWriter & ow ) const

Member Data Documentation

◆ body

std::shared_ptr<ScriptExpression> QQmlJS::Dom::MethodInfo::body

Definition at line 774 of file qqmldomelements_p.h.

◆ isConstructor

bool QQmlJS::Dom::MethodInfo::isConstructor = false

Definition at line 776 of file qqmldomelements_p.h.

◆ kindValue

constexpr DomType QQmlJS::Dom::MethodInfo::kindValue = DomType::MethodInfo
staticconstexpr

Definition at line 751 of file qqmldomelements_p.h.

◆ methodType

MethodType QQmlJS::Dom::MethodInfo::methodType = Method

Definition at line 773 of file qqmldomelements_p.h.

◆ parameters

QList<MethodParameter> QQmlJS::Dom::MethodInfo::parameters

Definition at line 772 of file qqmldomelements_p.h.

◆ returnType

std::shared_ptr<ScriptExpression> QQmlJS::Dom::MethodInfo::returnType

Definition at line 775 of file qqmldomelements_p.h.


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