|
QGIS API Documentation 4.3.0-Master (bd2f5e21fd1)
|
Represents a unary operation expression. More...
#include <qgsesriarcadescript.h>

Public Types | |
| enum class | UnaryOperator { Not , Minus , Plus , BitwiseNot , PreIncrement , PreDecrement , PostIncrement , PostDecrement } |
| Unary operator enumeration. More... | |
| 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... | |
Public Member Functions | |
| QgsEsriArcadeUnaryOperatorExpression (UnaryOperator unaryOperator, QgsEsriArcadeExpression *operand) | |
| Constructor for QgsEsriArcadeUnaryOperatorExpression. | |
| 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. | |
| QgsEsriArcadeExpression * | operand () const |
| Returns the operand expression. | |
| QString | text () const |
| Returns text representation of the operator. | |
| UnaryOperator | unaryOperator () const |
| Returns the unary operator. | |
| Public Member Functions inherited from QgsEsriArcadeExpression | |
| ~QgsEsriArcadeExpression () override=default | |
| Public Member Functions inherited from QgsEsriArcadeNode | |
| virtual | ~QgsEsriArcadeNode ()=default |
Static Public Attributes | |
| static const char * | UNARY_OPERATOR_TEXT [] = { "!", "-", "+", "~", "++", "--", "++", "--" } |
Represents a unary operation expression.
Definition at line 779 of file qgsesriarcadescript.h.
|
strong |
Unary operator enumeration.
Definition at line 785 of file qgsesriarcadescript.h.
| QgsEsriArcadeUnaryOperatorExpression::QgsEsriArcadeUnaryOperatorExpression | ( | UnaryOperator | unaryOperator, |
| QgsEsriArcadeExpression * | operand ) |
Constructor for QgsEsriArcadeUnaryOperatorExpression.
Ownership of operand is transferred to this expression.
Definition at line 432 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Accepts a visitor to traverse the node.
Implements QgsEsriArcadeNode.
Definition at line 455 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Creates a copy of the node.
Caller takes ownership of the returned object.
Implements QgsEsriArcadeNode.
Definition at line 450 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 442 of file qgsesriarcadescript.cpp.
|
inlineoverridevirtual |
Returns the node type.
Implements QgsEsriArcadeNode.
Definition at line 807 of file qgsesriarcadescript.h.
|
inline |
Returns the operand expression.
Definition at line 820 of file qgsesriarcadescript.h.
| QString QgsEsriArcadeUnaryOperatorExpression::text | ( | ) | const |
Returns text representation of the operator.
Definition at line 437 of file qgsesriarcadescript.cpp.
|
inline |
Returns the unary operator.
Definition at line 815 of file qgsesriarcadescript.h.
|
static |
Definition at line 33 of file qgsesriarcadescript.h.