Zen
A cross-platform functional programming language

QueryConstantExpr Class Reference

Concrete class for AST Node representing a query constant expression. More...

#include <Ast.hpp>

Inheritance diagram for QueryConstantExpr:
Expr Node

List of all members.

Public Member Functions

 QueryConstantExpr (const QualifiedType &type, const Expr &expr)
 Default constructor.
const ExprgetExpr () 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.

Detailed Description

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.


Constructor & Destructor Documentation

QueryConstantExpr ( const QualifiedType type,
const Expr expr 
) [inline]

Default constructor.

Parameters:
typeExpression type
exprThe expression conating the constant.

Member Function Documentation

const Expr& getExpr ( ) const [inline]

Returns the constant expression.

Returns:
The constant expression
void visit ( Expr::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Expr.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines