|
QGIS API Documentation 4.3.0-Master (0cef2469b72)
|
Represents a literal value (number, text string, boolean, or null). More...
#include <qgsvbscript.h>

Public Member Functions | |
| QgsVbScriptLiteralExpression (const QVariant &value) | |
| Constructor for QgsVbScriptLiteralExpression. | |
| 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. | |
| QgsVbScriptNode::NodeType | nodeType () const override |
| Returns the node type. | |
| QVariant | value () const |
| Returns the literal value. | |
| QString | valueAsString () const |
| Returns a string representation of the literal value. | |
| 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... | |
Represents a literal value (number, text string, boolean, or null).
Definition at line 459 of file qgsvbscript.h.
|
explicit |
Constructor for QgsVbScriptLiteralExpression.
Definition at line 190 of file qgsvbscript.cpp.
|
overridevirtual |
Accepts a visitor to traverse the node.
Implements QgsVbScriptNode.
Definition at line 232 of file qgsvbscript.cpp.
|
overridevirtual |
Creates a copy of the node.
Caller takes ownership of the returned object.
Implements QgsVbScriptNode.
Definition at line 227 of file qgsvbscript.cpp.
|
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 216 of file qgsvbscript.cpp.
|
inlineoverridevirtual |
|
inline |
Returns the literal value.
Definition at line 475 of file qgsvbscript.h.
| QString QgsVbScriptLiteralExpression::valueAsString | ( | ) | const |
Returns a string representation of the literal value.
Definition at line 194 of file qgsvbscript.cpp.