jmespath.cpp
C++ implementation of JMESPath, a query language for JSON http://jmespath.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Public Attributes | List of all members
jmespath::ast::ParenExpressionNode Class Reference

The ParenExpressionNode class represents a JMESPath paren expression. More...

#include <parenexpressionnode.h>

Inheritance diagram for jmespath::ast::ParenExpressionNode:
jmespath::ast::AbstractNode

Public Member Functions

 ParenExpressionNode ()
 Constructs an emtpy ParenExpressionNode object. More...
 
 ParenExpressionNode (const ExpressionNode &subexpression)
 Constructs a ParenExpressionNode object with the given expression as its child expression. 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 ParenExpressionNode &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...
 
AbstractNodeoperator= (const AbstractNode &)=default
 Copy-assigns the other object to this object. More...
 

Public Attributes

ExpressionNode expression
 The node's child expression. More...
 

Detailed Description

The ParenExpressionNode class represents a JMESPath paren expression.

Constructor & Destructor Documentation

jmespath::ast::ParenExpressionNode::ParenExpressionNode ( )

Constructs an emtpy ParenExpressionNode object.

jmespath::ast::ParenExpressionNode::ParenExpressionNode ( const ExpressionNode subexpression)

Constructs a ParenExpressionNode object with the given expression as its child expression.

Parameters
[in]subexpressionThe node's child expression.

Member Function Documentation

void jmespath::ast::ParenExpressionNode::accept ( interpreter::AbstractVisitor visitor) const
overridevirtual

Calls the visit method of the given visitor with the dynamic type of the node.

Parameters
[in]visitorA visitor implementation

Implements jmespath::ast::AbstractNode.

bool jmespath::ast::ParenExpressionNode::operator== ( const ParenExpressionNode other) const

Equality compares this node to the other.

Parameters
[in]otherThe node that should be compared.
Returns
Returns true if this object is equal to the other, otherwise false

Member Data Documentation

ExpressionNode jmespath::ast::ParenExpressionNode::expression

The node's child expression.


The documentation for this class was generated from the following files: