Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a query constant expression. More...
#include <Ast.hpp>
Public Member Functions | |
QueryConstantExpr (const QualifiedType &type, const Expr &expr) | |
Default constructor. | |
const Expr & | getExpr () const |
Returns the constant expression. | |
Private Member Functions | |
virtual void | visit (Expr::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Expr & | _expr |
The constant expression. |
Concrete class for AST Node representing a query constant expression.
For example:
local y = { @name::(true) && @age::((val > 25) && (val < 35))};
Here, 25 and 35 are constants.
QueryConstantExpr | ( | const QualifiedType & | type, |
const Expr & | expr | ||
) | [inline] |
Default constructor.
type | Expression type |
expr | The expression conating the constant. |
const Expr& getExpr | ( | ) | const [inline] |
Returns the constant expression.
void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |