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

This class encapsulates a location in a specific file. Implements an Inmutable pattern. So it can be used in any context, that is his internal fields never change. More...

Public Member Functions

 Location (string fileName, int lineNumber, int columnNumber)
 Constructor of Location. More...
 
 Location ()
 
override string ToString ()
 
override int GetHashCode ()
 
override bool Equals (object obj)
 
Location Clone ()
 

Properties

string FileName [get]
 Gets de name of the file More...
 
int Line [get]
 Gets line where the item is located More...
 
int Column [get]
 Gets column where the item is located More...
 
bool Valid [get]
 Indicates whether the object state has been created with a coherent state. In case it is false, its FileName, Line and Column must be properly written. More...
 

Detailed Description

This class encapsulates a location in a specific file. Implements an Inmutable pattern. So it can be used in any context, that is his internal fields never change.

Definition at line 24 of file Location.cs.

Constructor & Destructor Documentation

ErrorManagement.Location.Location ( string  fileName,
int  lineNumber,
int  columnNumber 
)

Constructor of Location.

Parameters
fileNameFile name of its source code
lineNumberLine number of its source code
columnNumberLine column of its source code

Definition at line 86 of file Location.cs.

ErrorManagement.Location.Location ( )

Definition at line 93 of file Location.cs.

Member Function Documentation

Location ErrorManagement.Location.Clone ( )

Definition at line 125 of file Location.cs.

override bool ErrorManagement.Location.Equals ( object  obj)

Definition at line 116 of file Location.cs.

override int ErrorManagement.Location.GetHashCode ( )

Definition at line 111 of file Location.cs.

override string ErrorManagement.Location.ToString ( )

Gets a string representation of the Location Object /summary>

Definition at line 103 of file Location.cs.

Property Documentation

int ErrorManagement.Location.Column
get

Gets column where the item is located

Definition at line 64 of file Location.cs.

string ErrorManagement.Location.FileName
get

Gets de name of the file

Definition at line 52 of file Location.cs.

int ErrorManagement.Location.Line
get

Gets line where the item is located

Definition at line 58 of file Location.cs.

bool ErrorManagement.Location.Valid
get

Indicates whether the object state has been created with a coherent state. In case it is false, its FileName, Line and Column must be properly written.

Definition at line 72 of file Location.cs.


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