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

Represents an abstract node for a VBScript script. More...

#include <qgsvbscript.h>

Inheritance diagram for QgsVbScriptNode:

Public Types

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...

Public Member Functions

virtual ~QgsVbScriptNode ()=default
virtual void accept (QgsVbScriptVisitor &visitor) const =0
 Accepts a visitor to traverse the node.
virtual QgsVbScriptNode * clone () const =0
 Creates a copy of the node.
virtual QString dump () const =0
 Returns the formatted script representation of the node.
virtual QgsVbScriptNode::NodeType nodeType () const =0
 Returns the node type.

Detailed Description

Represents an abstract node for a VBScript script.

VBScript node subclasses are either:

  • statements (inheriting QgsVbSriptStatement), such as a variable declaration, if statement, for loop.
  • or expressions (inheriting QgsVbScriptExpression), which are a portion of a statement representing an expression. For example 1+2, Upper('A string'), or literals like 255 or 'a string'.
Since
QGIS 4.4

Definition at line 57 of file qgsvbscript.h.

Member Enumeration Documentation

◆ NodeType

enum class QgsVbScriptNode::NodeType
strong

Node type identifier.

Enumerator
BlockStatement 

Block statement (a list of statements grouped together in a block).

VariableDeclarationStatement 

Variable declaration statement.

AssignmentStatement 

Variable assignment statement.

FunctionDeclarationStatement 

Function declaration.

ExpressionStatement 

Expression.

LiteralExpression 

Literal.

VariableReferenceExpression 

Reference to a standard variable.

MemberAccessExpression 

Member access via bracket or notation (eg $feature.ATTRIBUTE or $feature["ATTRIBUTE"]).

BinaryOperatorExpression 

Binary Operator.

UnaryOperatorExpression 

Operator.

FunctionCallExpression 

Function call.

IndexExpression 

Index operator.

ArrayLiteralExpression 

A literal array, where the element values may be expressions themselves (eg [1, 2, 3/4]).

IfStatement 

If statement.

ForStatement 

For loop.

ForEachStatement 

For each loop.

WhileStatement 

While loop.

ExitStatement 

Exit loop statement.

FieldReferenceExpression 

Special ESRI specific reference to a layer's field (eg [FIELD_NAME]).

Definition at line 128 of file qgsvbscript.h.

Constructor & Destructor Documentation

◆ ~QgsVbScriptNode()

virtual QgsVbScriptNode::~QgsVbScriptNode ( )
virtualdefault

Member Function Documentation

◆ accept()

◆ clone()

◆ dump()

◆ nodeType()


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