Zen
A cross-platform functional programming language

InvokerCallExpr Class Reference

Concrete class for AST Node representing a call to an Invoker. More...

#include <Ast.hpp>

Inheritance diagram for InvokerCallExpr:
Expr Node

List of all members.

Public Member Functions

 InvokerCallExpr (const QualifiedType &type, const Invoker &invoker)
 Default constructor.
const InvokergetInvoker () const
 Returns the invoker to be called.

Private Member Functions

virtual void visit (Expr::Visitor &visitor) const
 Abstract visitor function.

Private Attributes

const Invoker_invoker
 The invoker.

Detailed Description

Concrete class for AST Node representing a call to an Invoker.

For example:

        local x = fn(1, 'a');

Here, fn is a functor and fn() is an invoker call.


Constructor & Destructor Documentation

InvokerCallExpr ( const QualifiedType type,
const Invoker invoker 
) [inline]

Default constructor.

Parameters:
typeExpression type
invokerThe Invoker to be called.

Member Function Documentation

const Invoker& getInvoker ( ) const [inline]

Returns the invoker to be called.

Returns:
The invoker
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