Zen
A cross-platform functional programming language

ImportStatement Class Reference

AST Node for an import statement. More...

#include <Ast.hpp>

Inheritance diagram for ImportStatement:
Node

List of all members.

Public Types

enum  Type { itImport, itInclude, itNative }
 

The type of import.

More...

Public Member Functions

 ImportStatement ()
 Default constructor.
void addPart (const z::string &part)
 Add a part to the namespace to be imported.
const z::stringlistgetName () const
 Return the import name.
ImportStatementsetType (const Type &type)
 Set the import type.
const TypegetType () const
 Return the import type.

Private Attributes

z::stringlist _name
 The import name.
Type _type
 The import type.

Detailed Description

AST Node for an import statement.


Member Enumeration Documentation

enum Type

The type of import.

Enumerator:
itInclude 

Import system header.

itNative 

Import application header.


Member Function Documentation

void addPart ( const z::string part) [inline]

Add a part to the namespace to be imported.

Parameters:
partThe part to be added
const z::stringlist& getName ( ) const [inline]

Return the import name.

Returns:
The import name
Todo:
delete getName() function
const Type& getType ( ) const [inline]

Return the import type.

Returns:
The import type
ImportStatement& setType ( const Type type) [inline]

Set the import type.

Parameters:
typeThe import type
Returns:
Self reference

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