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

Public Member Functions | |
| QgsEsriArcadeLiteralExpression (const QVariant &value) | |
| Constructor for QgsEsriArcadeLiteralExpression. | |
| void | accept (QgsEsriArcadeVisitor &visitor) const override |
| Accepts a visitor to traverse the node. | |
| QgsEsriArcadeNode * | clone () const override |
| Creates a copy of the node. | |
| QString | dump () const override |
| Returns the formatted script representation of the node. | |
| QgsEsriArcadeNode::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 QgsEsriArcadeExpression | |
| ~QgsEsriArcadeExpression () override=default | |
| Public Member Functions inherited from QgsEsriArcadeNode | |
| virtual | ~QgsEsriArcadeNode ()=default |
Additional Inherited Members | |
| Public Types inherited from QgsEsriArcadeNode | |
| enum class | NodeType { BlockStatement , VariableDeclarationStatement , ReturnStatement , AssignmentStatement , FunctionDeclarationStatement , ExpressionStatement , LiteralExpression , VariableReferenceExpression , ProfileVariableReferenceExpression , MemberAccessExpression , BinaryOperatorExpression , UnaryOperatorExpression , FunctionCallExpression , IndexExpression , ArrayLiteralExpression , DictionaryLiteralExpression , IfStatement , ForStatement , ForInStatement , WhileStatement , BreakStatement , ContinueStatement } |
| Node type identifier. More... | |
Represents a literal value (number, text string, boolean, or null).
Definition at line 534 of file qgsesriarcadescript.h.
|
explicit |
Constructor for QgsEsriArcadeLiteralExpression.
Definition at line 221 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Accepts a visitor to traverse the node.
Implements QgsEsriArcadeNode.
Definition at line 270 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Creates a copy of the node.
Caller takes ownership of the returned object.
Implements QgsEsriArcadeNode.
Definition at line 265 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Returns the formatted script representation of the node.
This can be used to export a script node back to a valid Esri arcade script string.
Implements QgsEsriArcadeNode.
Definition at line 254 of file qgsesriarcadescript.cpp.
|
inlineoverridevirtual |
Returns the node type.
Implements QgsEsriArcadeNode.
Definition at line 542 of file qgsesriarcadescript.h.
|
inline |
Returns the literal value.
Definition at line 550 of file qgsesriarcadescript.h.
| QString QgsEsriArcadeLiteralExpression::valueAsString | ( | ) | const |
Returns a string representation of the literal value.
Definition at line 225 of file qgsesriarcadescript.cpp.