|
jmespath.cpp
C++ implementation of JMESPath, a query language for JSON http://jmespath.org
|
The LiteralNode class represents a JMESPath literal string. More...
#include <literalnode.h>
Public Member Functions | |
| LiteralNode () | |
| Constructs a LiteralNode object with empty value. More... | |
| LiteralNode (const String &value) | |
| Constructs a LiteralNode object with the given value. More... | |
| void | accept (interpreter::AbstractVisitor *visitor) const override |
| Calls the visit method of the given visitor with the dynamic type of the node. More... | |
| bool | operator== (const LiteralNode &other) const |
| Equality compares this node to the other. More... | |
Public Member Functions inherited from jmespath::ast::AbstractNode | |
| AbstractNode ()=default | |
| Constructs an AbstractNode object. More... | |
| AbstractNode (const AbstractNode &)=default | |
| Copy-constructs an AbstractNode object. More... | |
| virtual | ~AbstractNode () |
| Destroys the AbstractNode object. More... | |
| AbstractNode & | operator= (const AbstractNode &)=default |
| Copy-assigns the other object to this object. More... | |
Public Attributes | |
| String | literal |
| literal The value of the literal More... | |
The LiteralNode class represents a JMESPath literal string.
| jmespath::ast::LiteralNode::LiteralNode | ( | ) |
Constructs a LiteralNode object with empty value.
| jmespath::ast::LiteralNode::LiteralNode | ( | const String & | value | ) |
Constructs a LiteralNode object with the given value.
| [in] | value | The value of the literal string. |
|
overridevirtual |
Calls the visit method of the given visitor with the dynamic type of the node.
| [in] | visitor | A visitor implementation |
Implements jmespath::ast::AbstractNode.
| bool jmespath::ast::LiteralNode::operator== | ( | const LiteralNode & | other | ) | const |
Equality compares this node to the other.
| [in] | other | The node that should be compared. |
| String jmespath::ast::LiteralNode::literal |
literal The value of the literal
1.8.6