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

Represents a variable reassignment statement. More...

#include <qgsvbscript.h>

Inheritance diagram for QgsVbScriptAssignmentStatement:

Public Member Functions

 QgsVbScriptAssignmentStatement (QgsVbScriptExpression *target, QgsVbScriptExpression *value, bool isSet=false)
 Constructor for QgsVbScriptAssignmentStatement.
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.
bool isSet () const
 Returns true if the assignment uses the Set keyword.
QgsVbScriptNode::NodeType nodeType () const override
 Returns the node type.
QgsVbScriptExpression * target () const
 Returns the target expression being assigned to.
QgsVbScriptExpression * value () const
 Returns the assigned value expression.
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 a variable reassignment statement.

For example, age = "35 years";.

Since
QGIS 4.4

Definition at line 314 of file qgsvbscript.h.

Constructor & Destructor Documentation

◆ QgsVbScriptAssignmentStatement()

QgsVbScriptAssignmentStatement::QgsVbScriptAssignmentStatement ( QgsVbScriptExpression * target,
QgsVbScriptExpression * value,
bool isSet = false )

Constructor for QgsVbScriptAssignmentStatement.

Ownership of target and value is transferred to this statement.

Definition at line 111 of file qgsvbscript.cpp.

Member Function Documentation

◆ accept()

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

Accepts a visitor to traverse the node.

Implements QgsVbScriptNode.

Definition at line 129 of file qgsvbscript.cpp.

◆ clone()

QgsVbScriptNode * QgsVbScriptAssignmentStatement::clone ( ) const
overridevirtual

Creates a copy of the node.

Caller takes ownership of the returned object.

Implements QgsVbScriptNode.

Definition at line 122 of file qgsvbscript.cpp.

◆ dump()

QString QgsVbScriptAssignmentStatement::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 117 of file qgsvbscript.cpp.

◆ isSet()

bool QgsVbScriptAssignmentStatement::isSet ( ) const
inline

Returns true if the assignment uses the Set keyword.

Definition at line 342 of file qgsvbscript.h.

◆ nodeType()

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

Returns the node type.

Implements QgsVbScriptNode.

Definition at line 324 of file qgsvbscript.h.

◆ target()

QgsVbScriptExpression * QgsVbScriptAssignmentStatement::target ( ) const
inline

Returns the target expression being assigned to.

Definition at line 332 of file qgsvbscript.h.

◆ value()

QgsVbScriptExpression * QgsVbScriptAssignmentStatement::value ( ) const
inline

Returns the assigned value expression.

Definition at line 337 of file qgsvbscript.h.


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