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
QQmlSA::Method Class Reference

\inmodule QtQmlCompiler More...

#include <qqmlsa.h>

Collaboration diagram for QQmlSA::Method:

Classes

class  Methods
 \inmodule QtQmlCompiler More...

Public Member Functions

 Method ()
 Constructs a new Method object.
 Method (const Method &)
 Creates a copy of other.
 Method (Method &&) noexcept
 Move-constructs a Method instance.
Methodoperator= (const Method &)
 Assigns other to this Method instance.
Methodoperator= (Method &&) noexcept
 Move-assigns other to this Method instance.
 ~Method ()
 Destroys the Method.
QString methodName () const
 Returns the name of the this method.
QQmlSA::SourceLocation sourceLocation () const
 Returns the location in the QML code where this method is defined.
MethodType methodType () const
 Returns the type of this method.

Friends

bool operator== (const Method &lhs, const Method &rhs)
 Returns true if lhs and rhs are equal, and false otherwise.
bool operator!= (const Method &lhs, const Method &rhs)
 Returns true if lhs and rhs are not equal, and false otherwise.

Detailed Description

\inmodule QtQmlCompiler

Represents a QML method.

Definition at line 119 of file qqmlsa.h.

Constructor & Destructor Documentation

◆ Method() [1/3]

Method::Method ( )

Constructs a new Method object.

Definition at line 593 of file qqmlsa.cpp.

◆ Method() [2/3]

Method::Method ( const Method & other)

Creates a copy of other.

Definition at line 598 of file qqmlsa.cpp.

◆ Method() [3/3]

Method::Method ( Method && other)
noexcept

Move-constructs a Method instance.

Definition at line 603 of file qqmlsa.cpp.

◆ ~Method()

Method::~Method ( )
default

Destroys the Method.

Member Function Documentation

◆ methodName()

QString Method::methodName ( ) const

Returns the name of the this method.

Definition at line 642 of file qqmlsa.cpp.

◆ methodType()

MethodType Method::methodType ( ) const

Returns the type of this method.

Definition at line 651 of file qqmlsa.cpp.

◆ operator=() [1/2]

Method & Method::operator= ( const Method & other)

Assigns other to this Method instance.

Definition at line 611 of file qqmlsa.cpp.

◆ operator=() [2/2]

Method & Method::operator= ( Method && other)
noexcept

Move-assigns other to this Method instance.

Definition at line 624 of file qqmlsa.cpp.

◆ sourceLocation()

QQmlSA::SourceLocation Method::sourceLocation ( ) const

Returns the location in the QML code where this method is defined.

Definition at line 669 of file qqmlsa.cpp.

◆ operator!=

bool operator!= ( const Method & lhs,
const Method & rhs )
friend

Returns true if lhs and rhs are not equal, and false otherwise.

Definition at line 157 of file qqmlsa.h.

◆ operator==

bool operator== ( const Method & lhs,
const Method & rhs )
friend

Returns true if lhs and rhs are equal, and false otherwise.

Definition at line 153 of file qqmlsa.h.


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