Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a query part. More...
#include <Ast.hpp>
Public Member Functions | |
QueryPartExpr (const QualifiedType &type, const Expr &keyExpr, const Expr &valExpr) | |
Default constructor. | |
const Expr & | getKeyExpr () const |
Returns the key of the query part. | |
const Expr & | getValExpr () const |
Returns the value of the query part. | |
Private Member Functions | |
virtual void | visit (Expr::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Expr & | _keyExpr |
The query part key. | |
const Expr & | _valExpr |
The query part value. |
Concrete class for AST Node representing a query part.
A query consists of different query parts For example:
local y = { @name::(true) && @age::((val > 25) && (val < 35))};
Here, "@age::((val > 25) && (val < 35))" is a query part. The expression before the :: is a key and that after the :: is a value.
QueryPartExpr | ( | const QualifiedType & | type, |
const Expr & | keyExpr, | ||
const Expr & | valExpr | ||
) | [inline] |
Default constructor.
type | Expression type |
keyExpr | The key of the query part. |
valExpr | The value of the query part. |
const Expr& getKeyExpr | ( | ) | const [inline] |
Returns the key of the query part.
const Expr& getValExpr | ( | ) | const [inline] |
Returns the value of the query part.
void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |