The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
AST.Namespace Class Reference

Encapsulates a namespace definition. More...

Inheritance diagram for AST.Namespace:
AST.AstNode

Public Member Functions

 Namespace (IdentifierExpression name, List< Declaration > declarations, Location location)
 Constructor of Namespace More...
 
Declaration GetDeclarationElement (int index)
 Gets the element stored in the specified index. More...
 
override Object Accept (Visitor v, Object o)
 Accept method of a concrete visitor. More...
 
- Public Member Functions inherited from AST.AstNode
override bool Equals (object obj)
 AntLR compares Nodes with the class name. This is not correct for our purposes. More...
 
override int GetHashCode ()
 
virtual object AcceptOperation (AstOperation op, object arg)
 Dispatches expressions to the operation passed as argument. It provokes the execution of op.AcceptOperation(AstNode) with the parameter resolved polymorfically More...
 

Properties

IdentifierExpression Identifier [get]
 Gets the name of the namespace. More...
 
int NamespaceMembersCount [get]
 Gets the number of declaration in the namespace. More...
 
- Properties inherited from AST.AstNode
Location Location [get]
 

Additional Inherited Members

- Protected Member Functions inherited from AST.AstNode
 AstNode (Location location)
 Protected constructor of NodeAst More...
 
- Protected Attributes inherited from AST.AstNode
Location location
 Location: Encapsulates in one object the line, column and filename More...
 

Detailed Description

Encapsulates a namespace definition.

Inheritance: AstNode. Implements Composite pattern [Composite]. Implements Visitor pattern [Concrete Element].

Definition at line 35 of file Namespace.cs.

Constructor & Destructor Documentation

AST.Namespace.Namespace ( IdentifierExpression  name,
List< Declaration declarations,
Location  location 
)

Constructor of Namespace

Parameters
nameName of the namespace definition.
declarationsMembers of the namespace definition.
fileNameFile name.
lineNumberLine number.
columnNumberColumn number.

Definition at line 81 of file Namespace.cs.

Member Function Documentation

override Object AST.Namespace.Accept ( Visitor  v,
Object  o 
)
virtual

Accept method of a concrete visitor.

Parameters
vConcrete visitor
oOptional information to use in the visit.
Returns
Optional information to return

Implements AST.AstNode.

Definition at line 111 of file Namespace.cs.

Declaration AST.Namespace.GetDeclarationElement ( int  index)

Gets the element stored in the specified index.

Parameters
indexIndex.
Returns
Element stored in the specified index.

Definition at line 96 of file Namespace.cs.

Property Documentation

IdentifierExpression AST.Namespace.Identifier
get

Gets the name of the namespace.

Definition at line 57 of file Namespace.cs.

int AST.Namespace.NamespaceMembersCount
get

Gets the number of declaration in the namespace.

Definition at line 65 of file Namespace.cs.


The documentation for this class was generated from the following file: