QGIS API Documentation 4.3.0-Master (0cef2469b72)
Loading...
Searching...
No Matches
QgsVbScriptIndexExpression Class Reference

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

#include <qgsvbscript.h>

Inheritance diagram for QgsVbScriptIndexExpression:

Public Member Functions

 QgsVbScriptIndexExpression (QgsVbScriptExpression *containerExpression, QgsVbScriptExpression *indexExpression)
 Constructor for QgsVbScriptIndexExpression.
void accept (QgsVbScriptVisitor &visitor) const override
 Accepts a visitor to traverse the node.
QgsVbScriptNode * clone () const override
 Creates a copy of the node.
QgsVbScriptExpression * containerExpression () const
 Returns the container expression being indexed.
QString dump () const override
 Returns the formatted script representation of the node.
QgsVbScriptExpression * indexExpression () const
 Returns the index expression.
QgsVbScriptNode::NodeType nodeType () const override
 Returns the node type.
Public Member Functions inherited from QgsVbScriptExpression
 ~QgsVbScriptExpression () override=default
Public Member Functions inherited from QgsVbScriptNode
virtual ~QgsVbScriptNode ()=default

Additional Inherited Members

Public Types inherited from QgsVbScriptNode
enum class  NodeType {
  BlockStatement , VariableDeclarationStatement , AssignmentStatement , FunctionDeclarationStatement ,
  ExpressionStatement , LiteralExpression , VariableReferenceExpression , MemberAccessExpression ,
  BinaryOperatorExpression , UnaryOperatorExpression , FunctionCallExpression , IndexExpression ,
  ArrayLiteralExpression , IfStatement , ForStatement , ForEachStatement ,
  WhileStatement , ExitStatement , FieldReferenceExpression
}
 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 767 of file qgsvbscript.h.

Constructor & Destructor Documentation

◆ QgsVbScriptIndexExpression()

QgsVbScriptIndexExpression::QgsVbScriptIndexExpression ( QgsVbScriptExpression * containerExpression,
QgsVbScriptExpression * indexExpression )

Constructor for QgsVbScriptIndexExpression.

Ownership of containerExpression and indexExpression is transferred to this expression.

Definition at line 446 of file qgsvbscript.cpp.

Member Function Documentation

◆ accept()

void QgsVbScriptIndexExpression::accept ( QgsVbScriptVisitor & visitor) const
overridevirtual

Accepts a visitor to traverse the node.

Implements QgsVbScriptNode.

Definition at line 463 of file qgsvbscript.cpp.

◆ clone()

QgsVbScriptNode * QgsVbScriptIndexExpression::clone ( ) const
overridevirtual

Creates a copy of the node.

Caller takes ownership of the returned object.

Implements QgsVbScriptNode.

Definition at line 456 of file qgsvbscript.cpp.

◆ containerExpression()

QgsVbScriptExpression * QgsVbScriptIndexExpression::containerExpression ( ) const
inline

Returns the container expression being indexed.

Definition at line 785 of file qgsvbscript.h.

◆ dump()

QString QgsVbScriptIndexExpression::dump ( ) const
overridevirtual

Returns the formatted script representation of the node.

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

Implements QgsVbScriptNode.

Definition at line 451 of file qgsvbscript.cpp.

◆ indexExpression()

QgsVbScriptExpression * QgsVbScriptIndexExpression::indexExpression ( ) const
inline

Returns the index expression.

Definition at line 790 of file qgsvbscript.h.

◆ nodeType()

QgsVbScriptNode::NodeType QgsVbScriptIndexExpression::nodeType ( ) const
inlineoverridevirtual

Returns the node type.

Implements QgsVbScriptNode.

Definition at line 777 of file qgsvbscript.h.


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