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::MultiselectListNode Class Reference

The MultiselectListNode class represents a JMESPath list wildcard expression. More...

#include <multiselectlistnode.h>

Inheritance diagram for jmespath::ast::MultiselectListNode:
jmespath::ast::AbstractNode

Public Member Functions

 MultiselectListNode ()
 Constructs an empty MultiselectListNode object. More...
 
 MultiselectListNode (const std::vector< ExpressionNode > &subexpressions)
 Constructs a MultiselectListNode object with the given expressions as its subexpressions. More...
 
 MultiselectListNode (const std::initializer_list< ExpressionNode > &subexpressions)
 Constructs a MultiselectListNode object with the given expressions as its subexpressions. 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 MultiselectListNode &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

std::vector< ExpressionNodeexpressions
 The node's child expressions. More...
 

Detailed Description

The MultiselectListNode class represents a JMESPath list wildcard expression.

Constructor & Destructor Documentation

jmespath::ast::MultiselectListNode::MultiselectListNode ( )

Constructs an empty MultiselectListNode object.

jmespath::ast::MultiselectListNode::MultiselectListNode ( const std::vector< ExpressionNode > &  subexpressions)

Constructs a MultiselectListNode object with the given expressions as its subexpressions.

Parameters
[in]subexpressionsThe node's subexpressoins
jmespath::ast::MultiselectListNode::MultiselectListNode ( const std::initializer_list< ExpressionNode > &  subexpressions)

Constructs a MultiselectListNode object with the given expressions as its subexpressions.

Parameters
[in]subexpressionsThe node's subexpressoins

Member Function Documentation

void jmespath::ast::MultiselectListNode::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::MultiselectListNode::operator== ( const MultiselectListNode 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

std::vector<ExpressionNode> jmespath::ast::MultiselectListNode::expressions

The node's child expressions.


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