Zen
A cross-platform functional programming language
|
AST Node for an import statement. More...
#include <Ast.hpp>
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::stringlist & | getName () const |
Return the import name. | |
ImportStatement & | setType (const Type &type) |
Set the import type. | |
const Type & | getType () const |
Return the import type. | |
Private Attributes | |
z::stringlist | _name |
The import name. | |
Type | _type |
The import type. |
AST Node for an import statement.
enum Type |
void addPart | ( | const z::string & | part | ) | [inline] |
Add a part to the namespace to be imported.
part | The part to be added |
const z::stringlist& getName | ( | ) | const [inline] |
const Type& getType | ( | ) | const [inline] |
Return the import type.
ImportStatement& setType | ( | const Type & | type | ) | [inline] |
Set the import type.
type | The import type |