QGIS API Documentation 4.3.0-Master (bd2f5e21fd1)
Loading...
Searching...
No Matches
QgsEsriArcadeDictionaryLiteralExpression Class Reference

Represents a dictionary literal expression. More...

#include <qgsesriarcadescript.h>

Inheritance diagram for QgsEsriArcadeDictionaryLiteralExpression:

Public Member Functions

 QgsEsriArcadeDictionaryLiteralExpression (const QList< QgsEsriArcadeDictionaryElement * > &elements)
 Constructor for QgsEsriArcadeDictionaryLiteralExpression.
 ~QgsEsriArcadeDictionaryLiteralExpression () override
void accept (QgsEsriArcadeVisitor &visitor) const override
 Accepts a visitor to traverse the node.
QgsEsriArcadeNode * clone () const override
 Creates a copy of the node.
QString dump () const override
 Returns the formatted script representation of the node.
QList< QgsEsriArcadeDictionaryElement * > elements () const
 Returns the dictionary elements.
QgsEsriArcadeNode::NodeType nodeType () const override
 Returns the node type.
Public Member Functions inherited from QgsEsriArcadeExpression
 ~QgsEsriArcadeExpression () override=default
Public Member Functions inherited from QgsEsriArcadeNode
virtual ~QgsEsriArcadeNode ()=default

Additional Inherited Members

Public Types inherited from QgsEsriArcadeNode
enum class  NodeType {
  BlockStatement , VariableDeclarationStatement , ReturnStatement , AssignmentStatement ,
  FunctionDeclarationStatement , ExpressionStatement , LiteralExpression , VariableReferenceExpression ,
  ProfileVariableReferenceExpression , MemberAccessExpression , BinaryOperatorExpression , UnaryOperatorExpression ,
  FunctionCallExpression , IndexExpression , ArrayLiteralExpression , DictionaryLiteralExpression ,
  IfStatement , ForStatement , ForInStatement , WhileStatement ,
  BreakStatement , ContinueStatement
}
 Node type identifier. More...

Detailed Description

Represents a dictionary literal expression.

For example { a: 1, "b": 2 }.

Since
QGIS 4.4

Definition at line 1042 of file qgsesriarcadescript.h.

Constructor & Destructor Documentation

◆ QgsEsriArcadeDictionaryLiteralExpression()

QgsEsriArcadeDictionaryLiteralExpression::QgsEsriArcadeDictionaryLiteralExpression ( const QList< QgsEsriArcadeDictionaryElement * > & elements)
explicit

Constructor for QgsEsriArcadeDictionaryLiteralExpression.

Ownership of the elements is transferred to the expression.

Definition at line 597 of file qgsesriarcadescript.cpp.

◆ ~QgsEsriArcadeDictionaryLiteralExpression()

QgsEsriArcadeDictionaryLiteralExpression::~QgsEsriArcadeDictionaryLiteralExpression ( )
override

Definition at line 601 of file qgsesriarcadescript.cpp.

Member Function Documentation

◆ accept()

void QgsEsriArcadeDictionaryLiteralExpression::accept ( QgsEsriArcadeVisitor & visitor) const
overridevirtual

Accepts a visitor to traverse the node.

Implements QgsEsriArcadeNode.

Definition at line 631 of file qgsesriarcadescript.cpp.

◆ clone()

QgsEsriArcadeNode * QgsEsriArcadeDictionaryLiteralExpression::clone ( ) const
overridevirtual

Creates a copy of the node.

Caller takes ownership of the returned object.

Implements QgsEsriArcadeNode.

Definition at line 620 of file qgsesriarcadescript.cpp.

◆ dump()

QString QgsEsriArcadeDictionaryLiteralExpression::dump ( ) const
overridevirtual

Returns the formatted script representation of the node.

This can be used to export a script node back to a valid Esri arcade script string.

Implements QgsEsriArcadeNode.

Definition at line 606 of file qgsesriarcadescript.cpp.

◆ elements()

QList< QgsEsriArcadeDictionaryElement * > QgsEsriArcadeDictionaryLiteralExpression::elements ( ) const
inline

Returns the dictionary elements.

Definition at line 1061 of file qgsesriarcadescript.h.

◆ nodeType()

QgsEsriArcadeNode::NodeType QgsEsriArcadeDictionaryLiteralExpression::nodeType ( ) const
inlineoverridevirtual

Returns the node type.

Implements QgsEsriArcadeNode.

Definition at line 1053 of file qgsesriarcadescript.h.


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