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

Represents an expression evaluated as a statement. More...

#include <qgsvbscript.h>

Inheritance diagram for QgsVbScriptExpressionStatement:

Public Member Functions

 QgsVbScriptExpressionStatement (QgsVbScriptExpression *expression)
 Constructor for QgsVbScriptExpressionStatement.
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.
QgsVbScriptExpression * expression () const
 Returns the underlying expression.
QgsVbScriptNode::NodeType nodeType () const override
 Returns the node type.
Public Member Functions inherited from QgsVbScriptStatement
 ~QgsVbScriptStatement () 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 expression evaluated as a statement.

For example, a standalone variable * 2 + 3 expression.

Since
QGIS 4.4

Definition at line 422 of file qgsvbscript.h.

Constructor & Destructor Documentation

◆ QgsVbScriptExpressionStatement()

QgsVbScriptExpressionStatement::QgsVbScriptExpressionStatement ( QgsVbScriptExpression * expression)
explicit

Constructor for QgsVbScriptExpressionStatement.

Ownership of expression is transferred to this statement.

Definition at line 167 of file qgsvbscript.cpp.

Member Function Documentation

◆ accept()

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

Accepts a visitor to traverse the node.

Implements QgsVbScriptNode.

Definition at line 181 of file qgsvbscript.cpp.

◆ clone()

QgsVbScriptNode * QgsVbScriptExpressionStatement::clone ( ) const
overridevirtual

Creates a copy of the node.

Caller takes ownership of the returned object.

Implements QgsVbScriptNode.

Definition at line 176 of file qgsvbscript.cpp.

◆ dump()

QString QgsVbScriptExpressionStatement::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 171 of file qgsvbscript.cpp.

◆ expression()

QgsVbScriptExpression * QgsVbScriptExpressionStatement::expression ( ) const
inline

Returns the underlying expression.

Definition at line 440 of file qgsvbscript.h.

◆ nodeType()

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

Returns the node type.

Implements QgsVbScriptNode.

Definition at line 432 of file qgsvbscript.h.


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