|
QGIS API Documentation 4.3.0-Master (0cef2469b72)
|
Represents an abstract node for a VBScript script. More...
#include <qgsvbscript.h>

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. | |
Represents an abstract node for a VBScript script.
VBScript node subclasses are either:
Definition at line 57 of file qgsvbscript.h.
|
strong |
Node type identifier.
Definition at line 128 of file qgsvbscript.h.
|
virtualdefault |
|
pure virtual |
Accepts a visitor to traverse the node.
Implemented in QgsVbScriptArrayLiteralExpression, QgsVbScriptAssignmentStatement, QgsVbScriptBinaryOperatorExpression, QgsVbScriptBlockStatement, QgsVbScriptExitStatement, QgsVbScriptExpressionStatement, QgsVbScriptFieldReferenceExpression, QgsVbScriptForEachStatement, QgsVbScriptForStatement, QgsVbScriptFunctionCallExpression, QgsVbScriptFunctionDeclarationStatement, QgsVbScriptIfStatement, QgsVbScriptIndexExpression, QgsVbScriptLiteralExpression, QgsVbScriptMemberAccessExpression, QgsVbScriptUnaryOperatorExpression, QgsVbScriptVariableDeclarationStatement, QgsVbScriptVariableReferenceExpression, and QgsVbScriptWhileStatement.
|
pure virtual |
Creates a copy of the node.
Caller takes ownership of the returned object.
Implemented in QgsVbScriptArrayLiteralExpression, QgsVbScriptAssignmentStatement, QgsVbScriptBinaryOperatorExpression, QgsVbScriptBlockStatement, QgsVbScriptExitStatement, QgsVbScriptExpressionStatement, QgsVbScriptFieldReferenceExpression, QgsVbScriptForEachStatement, QgsVbScriptForStatement, QgsVbScriptFunctionCallExpression, QgsVbScriptFunctionDeclarationStatement, QgsVbScriptIfStatement, QgsVbScriptIndexExpression, QgsVbScriptLiteralExpression, QgsVbScriptMemberAccessExpression, QgsVbScriptUnaryOperatorExpression, QgsVbScriptVariableDeclarationStatement, QgsVbScriptVariableReferenceExpression, and QgsVbScriptWhileStatement.
|
pure virtual |
Returns the formatted script representation of the node.
This can be used to export a script node back to a valid VBScript string.
Implemented in QgsVbScriptArrayLiteralExpression, QgsVbScriptAssignmentStatement, QgsVbScriptBinaryOperatorExpression, QgsVbScriptBlockStatement, QgsVbScriptExitStatement, QgsVbScriptExpressionStatement, QgsVbScriptFieldReferenceExpression, QgsVbScriptForEachStatement, QgsVbScriptForStatement, QgsVbScriptFunctionCallExpression, QgsVbScriptFunctionDeclarationStatement, QgsVbScriptIfStatement, QgsVbScriptIndexExpression, QgsVbScriptLiteralExpression, QgsVbScriptMemberAccessExpression, QgsVbScriptUnaryOperatorExpression, QgsVbScriptVariableDeclarationStatement, QgsVbScriptVariableReferenceExpression, and QgsVbScriptWhileStatement.
|
pure virtual |
Returns the node type.
Implemented in QgsVbScriptArrayLiteralExpression, QgsVbScriptAssignmentStatement, QgsVbScriptBinaryOperatorExpression, QgsVbScriptBlockStatement, QgsVbScriptExitStatement, QgsVbScriptExpressionStatement, QgsVbScriptFieldReferenceExpression, QgsVbScriptForEachStatement, QgsVbScriptForStatement, QgsVbScriptFunctionCallExpression, QgsVbScriptFunctionDeclarationStatement, QgsVbScriptIfStatement, QgsVbScriptIndexExpression, QgsVbScriptLiteralExpression, QgsVbScriptMemberAccessExpression, QgsVbScriptUnaryOperatorExpression, QgsVbScriptVariableDeclarationStatement, QgsVbScriptVariableReferenceExpression, and QgsVbScriptWhileStatement.