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

Represents an array or dictionary index subscript expression. More...

#include <qgsesriarcadescript.h>

Inheritance diagram for QgsEsriArcadeIndexExpression:

Public Member Functions

 QgsEsriArcadeIndexExpression (QgsEsriArcadeExpression *containerExpression, QgsEsriArcadeExpression *indexExpression)
 Constructor for QgsEsriArcadeIndexExpression.
void accept (QgsEsriArcadeVisitor &visitor) const override
 Accepts a visitor to traverse the node.
QgsEsriArcadeNode * clone () const override
 Creates a copy of the node.
QgsEsriArcadeExpression * containerExpression () const
 Returns the container expression being indexed.
QString dump () const override
 Returns the formatted script representation of the node.
QgsEsriArcadeExpression * indexExpression () const
 Returns the index expression.
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 an array or dictionary index subscript expression.

For example values[index].

Since
QGIS 4.4

Definition at line 894 of file qgsesriarcadescript.h.

Constructor & Destructor Documentation

◆ QgsEsriArcadeIndexExpression()

QgsEsriArcadeIndexExpression::QgsEsriArcadeIndexExpression ( QgsEsriArcadeExpression * containerExpression,
QgsEsriArcadeExpression * indexExpression )

Constructor for QgsEsriArcadeIndexExpression.

Ownership of containerExpression and indexExpression is transferred to this expression.

Definition at line 505 of file qgsesriarcadescript.cpp.

Member Function Documentation

◆ accept()

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

Accepts a visitor to traverse the node.

Implements QgsEsriArcadeNode.

Definition at line 522 of file qgsesriarcadescript.cpp.

◆ clone()

QgsEsriArcadeNode * QgsEsriArcadeIndexExpression::clone ( ) const
overridevirtual

Creates a copy of the node.

Caller takes ownership of the returned object.

Implements QgsEsriArcadeNode.

Definition at line 515 of file qgsesriarcadescript.cpp.

◆ containerExpression()

QgsEsriArcadeExpression * QgsEsriArcadeIndexExpression::containerExpression ( ) const
inline

Returns the container expression being indexed.

Definition at line 912 of file qgsesriarcadescript.h.

◆ dump()

QString QgsEsriArcadeIndexExpression::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 510 of file qgsesriarcadescript.cpp.

◆ indexExpression()

QgsEsriArcadeExpression * QgsEsriArcadeIndexExpression::indexExpression ( ) const
inline

Returns the index expression.

Definition at line 917 of file qgsesriarcadescript.h.

◆ nodeType()

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

Returns the node type.

Implements QgsEsriArcadeNode.

Definition at line 904 of file qgsesriarcadescript.h.


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