jmespath.cpp
C++ implementation of JMESPath, a query language for JSON http://jmespath.org
|
The BracketSpecifierNode class represents a JMESPath bracket specifier. More...
#include <bracketspecifiernode.h>
Public Member Functions | |
BracketSpecifierNode () | |
Constructs an empty BracketSpecifierNode object. More... | |
BracketSpecifierNode (const ValueType &expression) | |
Constructs a BracketSpecifierNode object with the given expression as its value. More... | |
bool | isProjection () const |
Returns whather this expression requires the projection of subsequent expressions. More... | |
bool | stopsProjection () const |
Reports whether the node should stop an ongoing projection or not. More... | |
![]() | |
VariantNode () | |
Constructs an empty VariantNode object. More... | |
VariantNode (const VariantNode &)=default | |
Copy-constructs an VariantNode object. More... | |
VariantNode (const T &other) | |
Copy constructs a VariantNode object if T is VariantNode or constructs a VariantNode object with T as the represented node type with the value given in other. More... | |
VariantNode< VariantT...> & | operator= (const VariantNode &other) |
Assigns the other object's value to this object. More... | |
VariantNode< VariantT...> & | operator= (const T &other) |
Assigns the value of the other object to this object's internal variant making it the node that this object represents. More... | |
bool | operator== (const VariantNode &other) const |
Equality compares this node to the other. More... | |
bool | isNull () const |
Returns whether this object has been initialized. More... | |
void | accept (interpreter::AbstractVisitor *visitor) const override |
Accepts the given visitor object. More... | |
![]() | |
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... | |
Private Member Functions | |
virtual void | anchor () |
A virtual function used to pin vtable to a transaltion unit. More... | |
Additional Inherited Members | |
![]() | |
using | ValueType = boost::variant< boost::blank, VariantT...> |
The internal variant type which stores the nodes defined in VariantT or boost::blank if it's empty. More... | |
![]() | |
ValueType | value |
The variable which stores the node that this object represents. More... | |
The BracketSpecifierNode class represents a JMESPath bracket specifier.
jmespath::ast::BracketSpecifierNode::BracketSpecifierNode | ( | ) |
Constructs an empty BracketSpecifierNode object.
jmespath::ast::BracketSpecifierNode::BracketSpecifierNode | ( | const ValueType & | expression | ) |
Constructs a BracketSpecifierNode object with the given expression as its value.
[in] | expression | The node's child expression. |
|
privatevirtual |
A virtual function used to pin vtable to a transaltion unit.
bool jmespath::ast::BracketSpecifierNode::isProjection | ( | ) | const |
Returns whather this expression requires the projection of subsequent expressions.
bool jmespath::ast::BracketSpecifierNode::stopsProjection | ( | ) | const |
Reports whether the node should stop an ongoing projection or not.