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

Represents an array literal expression. More...

#include <qgsvbscript.h>

Inheritance diagram for QgsVbScriptArrayLiteralExpression:

Public Member Functions

 QgsVbScriptArrayLiteralExpression (const QList< QgsVbScriptExpression * > &elements)
 Constructor for QgsVbScriptArrayLiteralExpression.
 ~QgsVbScriptArrayLiteralExpression () override
void accept (QgsVbScriptVisitor &visitor) const override
 Accepts a visitor to traverse the node.
QgsVbScriptNode * clone () const override
 Creates a copy of the node.
QString dump () const override
 Returns the formatted script representation of the node.
QList< QgsVbScriptExpression * > elements () const
 Returns the list of element expressions.
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 literal expression.

Array elements may be expressions themselves.

Since
QGIS 4.4

Definition at line 812 of file qgsvbscript.h.

Constructor & Destructor Documentation

◆ QgsVbScriptArrayLiteralExpression()

QgsVbScriptArrayLiteralExpression::QgsVbScriptArrayLiteralExpression ( const QList< QgsVbScriptExpression * > & elements)
explicit

Constructor for QgsVbScriptArrayLiteralExpression.

Ownership of all expressions in elements is transferred to this node.

Definition at line 472 of file qgsvbscript.cpp.

◆ ~QgsVbScriptArrayLiteralExpression()

QgsVbScriptArrayLiteralExpression::~QgsVbScriptArrayLiteralExpression ( )
override

Definition at line 476 of file qgsvbscript.cpp.

Member Function Documentation

◆ accept()

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

Accepts a visitor to traverse the node.

Implements QgsVbScriptNode.

Definition at line 503 of file qgsvbscript.cpp.

◆ clone()

QgsVbScriptNode * QgsVbScriptArrayLiteralExpression::clone ( ) const
overridevirtual

Creates a copy of the node.

Caller takes ownership of the returned object.

Implements QgsVbScriptNode.

Definition at line 492 of file qgsvbscript.cpp.

◆ dump()

QString QgsVbScriptArrayLiteralExpression::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 481 of file qgsvbscript.cpp.

◆ elements()

QList< QgsVbScriptExpression * > QgsVbScriptArrayLiteralExpression::elements ( ) const
inline

Returns the list of element expressions.

Definition at line 832 of file qgsvbscript.h.

◆ nodeType()

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

Returns the node type.

Implements QgsVbScriptNode.

Definition at line 824 of file qgsvbscript.h.


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