Zen
A cross-platform functional programming language

QueryPartExpr Class Reference

Concrete class for AST Node representing a query part. More...

#include <Ast.hpp>

Inheritance diagram for QueryPartExpr:
Expr Node

List of all members.

Public Member Functions

 QueryPartExpr (const QualifiedType &type, const Expr &keyExpr, const Expr &valExpr)
 Default constructor.
const ExprgetKeyExpr () const
 Returns the key of the query part.
const ExprgetValExpr () 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.

Detailed Description

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.


Constructor & Destructor Documentation

QueryPartExpr ( const QualifiedType type,
const Expr keyExpr,
const Expr valExpr 
) [inline]

Default constructor.

Parameters:
typeExpression type
keyExprThe key of the query part.
valExprThe value of the query part.

Member Function Documentation

const Expr& getKeyExpr ( ) const [inline]

Returns the key of the query part.

Returns:
The query part key
const Expr& getValExpr ( ) const [inline]

Returns the value of the query part.

Returns:
The query part value
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