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
QQmlJSMetaMethod Class Reference

#include <qqmljsmetatypes_p.h>

Collaboration diagram for QQmlJSMetaMethod:

Public Types

enum  Access { Private , Protected , Public }
enum class  RelativeFunctionIndex : int { Invalid = -1 }
enum class  AbsoluteFunctionIndex : int { Invalid = -1 }
using MethodType = QQmlJSMetaMethodType

Public Member Functions

 QQmlJSMetaMethod ()=default
 QQmlJSMetaMethod (QString name, QString returnType=QString())
QString methodName () const
void setMethodName (const QString &name)
QQmlJS::SourceLocation sourceLocation () const
void setSourceLocation (QQmlJS::SourceLocation location)
QQmlJSMetaReturnType returnValue () const
void setReturnValue (const QQmlJSMetaReturnType returnValue)
QString returnTypeName () const
void setReturnTypeName (const QString &typeName)
QSharedPointer< const QQmlJSScopereturnType () const
void setReturnType (QWeakPointer< const QQmlJSScope > type)
QList< QQmlJSMetaParameterparameters () const
std::pair< QList< QQmlJSMetaParameter >::iterator, QList< QQmlJSMetaParameter >::iteratormutableParametersRange ()
QStringList parameterNames () const
void setParameters (const QList< QQmlJSMetaParameter > &parameters)
void addParameter (const QQmlJSMetaParameter &p)
QQmlJSMetaMethodType methodType () const
void setMethodType (MethodType methodType)
Access access () const
int revision () const
void setRevision (int r)
bool isCloned () const
void setIsCloned (bool isCloned)
bool isConstructor () const
void setIsConstructor (bool isConstructor)
bool isJavaScriptFunction () const
void setIsJavaScriptFunction (bool isJavaScriptFunction)
bool isImplicitQmlPropertyChangeSignal () const
void setIsImplicitQmlPropertyChangeSignal (bool isPropertyChangeSignal)
bool isConst () const
void setIsConst (bool isConst)
bool isValid () const
const QVector< QQmlJSAnnotation > & annotations () const
void setAnnotations (QVector< QQmlJSAnnotation > annotations)
void setJsFunctionIndex (RelativeFunctionIndex index)
RelativeFunctionIndex jsFunctionIndex () const
void setConstructorIndex (RelativeFunctionIndex index)
RelativeFunctionIndex constructorIndex () const
void setMethodIndex (RelativeFunctionIndex index)
RelativeFunctionIndex methodIndex () const

Friends

bool operator== (const QQmlJSMetaMethod &a, const QQmlJSMetaMethod &b)
bool operator!= (const QQmlJSMetaMethod &a, const QQmlJSMetaMethod &b)
size_t qHash (const QQmlJSMetaMethod &method, size_t seed=0)

Detailed Description

Definition at line 197 of file qqmljsmetatypes_p.h.

Member Typedef Documentation

◆ MethodType

Member Enumeration Documentation

◆ AbsoluteFunctionIndex

enum class QQmlJSMetaMethod::AbsoluteFunctionIndex : int
strong

Represents an absolute JavaScript function/expression index pointing into the QV4::ExecutableCompilationUnit::runtimeFunctions array. Used as a typed alternative to int with an explicit invalid state.

Enumerator
Invalid 

Definition at line 218 of file qqmljsmetatypes_p.h.

◆ Access

Enumerator
Private 
Protected 
Public 

Definition at line 200 of file qqmljsmetatypes_p.h.

◆ RelativeFunctionIndex

enum class QQmlJSMetaMethod::RelativeFunctionIndex : int
strong

Represents a relative JavaScript function/expression index within a type in a QML document. Used as a typed alternative to int with an explicit invalid state.

Enumerator
Invalid 

Definition at line 210 of file qqmljsmetatypes_p.h.

Constructor & Destructor Documentation

◆ QQmlJSMetaMethod() [1/2]

QQmlJSMetaMethod::QQmlJSMetaMethod ( )
default

◆ QQmlJSMetaMethod() [2/2]

QQmlJSMetaMethod::QQmlJSMetaMethod ( QString name,
QString returnType = QString() )
inlineexplicit

Definition at line 221 of file qqmljsmetatypes_p.h.

References QQmlJSMetaMethod(), and QQmlSA::Method.

Referenced by QQmlJSMetaMethod().

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

Member Function Documentation

◆ access()

Access QQmlJSMetaMethod::access ( ) const
inline

Definition at line 263 of file qqmljsmetatypes_p.h.

◆ addParameter()

void QQmlJSMetaMethod::addParameter ( const QQmlJSMetaParameter & p)
inline

Definition at line 258 of file qqmljsmetatypes_p.h.

◆ annotations()

const QVector< QQmlJSAnnotation > & QQmlJSMetaMethod::annotations ( ) const
inline

Definition at line 291 of file qqmljsmetatypes_p.h.

◆ constructorIndex()

RelativeFunctionIndex QQmlJSMetaMethod::constructorIndex ( ) const
inline

Definition at line 312 of file qqmljsmetatypes_p.h.

◆ isCloned()

bool QQmlJSMetaMethod::isCloned ( ) const
inline

Definition at line 268 of file qqmljsmetatypes_p.h.

◆ isConst()

bool QQmlJSMetaMethod::isConst ( ) const
inline

Definition at line 286 of file qqmljsmetatypes_p.h.

◆ isConstructor()

bool QQmlJSMetaMethod::isConstructor ( ) const
inline

Definition at line 271 of file qqmljsmetatypes_p.h.

◆ isImplicitQmlPropertyChangeSignal()

bool QQmlJSMetaMethod::isImplicitQmlPropertyChangeSignal ( ) const
inline

Definition at line 280 of file qqmljsmetatypes_p.h.

◆ isJavaScriptFunction()

bool QQmlJSMetaMethod::isJavaScriptFunction ( ) const
inline

Definition at line 274 of file qqmljsmetatypes_p.h.

◆ isValid()

bool QQmlJSMetaMethod::isValid ( ) const
inline

Definition at line 289 of file qqmljsmetatypes_p.h.

◆ jsFunctionIndex()

RelativeFunctionIndex QQmlJSMetaMethod::jsFunctionIndex ( ) const
inline

Definition at line 300 of file qqmljsmetatypes_p.h.

◆ methodIndex()

RelativeFunctionIndex QQmlJSMetaMethod::methodIndex ( ) const
inline

Definition at line 324 of file qqmljsmetatypes_p.h.

◆ methodName()

QString QQmlJSMetaMethod::methodName ( ) const
inline

Definition at line 227 of file qqmljsmetatypes_p.h.

◆ methodType()

QQmlJSMetaMethodType QQmlJSMetaMethod::methodType ( ) const
inline

Definition at line 260 of file qqmljsmetatypes_p.h.

◆ mutableParametersRange()

std::pair< QList< QQmlJSMetaParameter >::iterator, QList< QQmlJSMetaParameter >::iterator > QQmlJSMetaMethod::mutableParametersRange ( )
inline

Definition at line 242 of file qqmljsmetatypes_p.h.

◆ parameterNames()

QStringList QQmlJSMetaMethod::parameterNames ( ) const
inline

Definition at line 247 of file qqmljsmetatypes_p.h.

◆ parameters()

QList< QQmlJSMetaParameter > QQmlJSMetaMethod::parameters ( ) const
inline

Definition at line 240 of file qqmljsmetatypes_p.h.

◆ returnType()

QSharedPointer< const QQmlJSScope > QQmlJSMetaMethod::returnType ( ) const
inline

Definition at line 237 of file qqmljsmetatypes_p.h.

◆ returnTypeName()

QString QQmlJSMetaMethod::returnTypeName ( ) const
inline

Definition at line 235 of file qqmljsmetatypes_p.h.

◆ returnValue()

QQmlJSMetaReturnType QQmlJSMetaMethod::returnValue ( ) const
inline

Definition at line 233 of file qqmljsmetatypes_p.h.

◆ revision()

int QQmlJSMetaMethod::revision ( ) const
inline

Definition at line 265 of file qqmljsmetatypes_p.h.

◆ setAnnotations()

void QQmlJSMetaMethod::setAnnotations ( QVector< QQmlJSAnnotation > annotations)
inline

Definition at line 292 of file qqmljsmetatypes_p.h.

◆ setConstructorIndex()

void QQmlJSMetaMethod::setConstructorIndex ( RelativeFunctionIndex index)
inline

Definition at line 306 of file qqmljsmetatypes_p.h.

◆ setIsCloned()

void QQmlJSMetaMethod::setIsCloned ( bool isCloned)
inline

Definition at line 269 of file qqmljsmetatypes_p.h.

◆ setIsConst()

void QQmlJSMetaMethod::setIsConst ( bool isConst)
inline

Definition at line 287 of file qqmljsmetatypes_p.h.

◆ setIsConstructor()

void QQmlJSMetaMethod::setIsConstructor ( bool isConstructor)
inline

Definition at line 272 of file qqmljsmetatypes_p.h.

◆ setIsImplicitQmlPropertyChangeSignal()

void QQmlJSMetaMethod::setIsImplicitQmlPropertyChangeSignal ( bool isPropertyChangeSignal)
inline

Definition at line 281 of file qqmljsmetatypes_p.h.

◆ setIsJavaScriptFunction()

void QQmlJSMetaMethod::setIsJavaScriptFunction ( bool isJavaScriptFunction)
inline

Definition at line 275 of file qqmljsmetatypes_p.h.

◆ setJsFunctionIndex()

void QQmlJSMetaMethod::setJsFunctionIndex ( RelativeFunctionIndex index)
inline

Definition at line 294 of file qqmljsmetatypes_p.h.

◆ setMethodIndex()

void QQmlJSMetaMethod::setMethodIndex ( RelativeFunctionIndex index)
inline

Definition at line 318 of file qqmljsmetatypes_p.h.

◆ setMethodName()

void QQmlJSMetaMethod::setMethodName ( const QString & name)
inline

Definition at line 228 of file qqmljsmetatypes_p.h.

◆ setMethodType()

void QQmlJSMetaMethod::setMethodType ( MethodType methodType)
inline

Definition at line 261 of file qqmljsmetatypes_p.h.

◆ setParameters()

void QQmlJSMetaMethod::setParameters ( const QList< QQmlJSMetaParameter > & parameters)
inline

Definition at line 256 of file qqmljsmetatypes_p.h.

◆ setReturnType()

void QQmlJSMetaMethod::setReturnType ( QWeakPointer< const QQmlJSScope > type)
inline

Definition at line 238 of file qqmljsmetatypes_p.h.

◆ setReturnTypeName()

void QQmlJSMetaMethod::setReturnTypeName ( const QString & typeName)
inline

Definition at line 236 of file qqmljsmetatypes_p.h.

◆ setReturnValue()

void QQmlJSMetaMethod::setReturnValue ( const QQmlJSMetaReturnType returnValue)
inline

Definition at line 234 of file qqmljsmetatypes_p.h.

◆ setRevision()

void QQmlJSMetaMethod::setRevision ( int r)
inline

Definition at line 266 of file qqmljsmetatypes_p.h.

◆ setSourceLocation()

void QQmlJSMetaMethod::setSourceLocation ( QQmlJS::SourceLocation location)
inline

Definition at line 231 of file qqmljsmetatypes_p.h.

◆ sourceLocation()

QQmlJS::SourceLocation QQmlJSMetaMethod::sourceLocation ( ) const
inline

Definition at line 230 of file qqmljsmetatypes_p.h.

◆ operator!=

bool operator!= ( const QQmlJSMetaMethod & a,
const QQmlJSMetaMethod & b )
friend

Definition at line 343 of file qqmljsmetatypes_p.h.

◆ operator==

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

Definition at line 330 of file qqmljsmetatypes_p.h.

◆ qHash

size_t qHash ( const QQmlJSMetaMethod & method,
size_t seed = 0 )
friend

Definition at line 348 of file qqmljsmetatypes_p.h.


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