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

New implementation of DynVarManagement: -Ignores "block" elements: not used anymore. -Provides wider interface: -Dynamic method return (dynreturn attribute in method elements) -Interface elements Includes set of old fields, properties and methods for retro-compatibility reasons. More...

Public Member Functions

bool LoadOrCreate (string fileName)
 Attemps to load the specified ".dyn" file. If the file does not exist or an exception is thrown, a new file is created in its place. More...
 
void Save ()
 
void SetDynamic (VarPath path)
 
void SetStatic (VarPath path)
 
bool IsDynamic (VarPath path)
 
 DynVarManager ()
 Constructor of DynVarManager More...
 
void Load (string name)
 Loads the xml file associated to the source code file More...
 
bool SearchDynVar (string ns, string classId, string varId)
 
bool SearchDynVar (string ns, string classId, string methodId, string varId)
 
bool SearchDynVar (string ns, string classId, string methodId, List< int > blockList, string varId)
 
bool SearchDynVar (string ns, string classOrInterfaceId, string methodId, bool isClassId)
 

Static Public Attributes

static readonly string DynVarFileExt = ".dyn"
 File extension More...
 
static readonly string ApplicationTag = "application"
 
static readonly string NamespaceTag = "namespace"
 
static readonly string ClassTag = "class"
 
static readonly string InterfaceTag = "interface"
 
static readonly string MethodTag = "method"
 
static readonly string DynVarTag = "dynvar"
 
static readonly string NameAtt = "name"
 
static readonly string DynReturnAtt = "dynreturn"
 

Properties

string FileName [get]
 
bool Ready [get]
 Gets true if the xml document is loaded. Otherwise false. More...
 

Detailed Description

New implementation of DynVarManagement: -Ignores "block" elements: not used anymore. -Provides wider interface: -Dynamic method return (dynreturn attribute in method elements) -Interface elements Includes set of old fields, properties and methods for retro-compatibility reasons.

Definition at line 15 of file DynVarManager.cs.

Constructor & Destructor Documentation

DynVarManagement.DynVarManager.DynVarManager ( )

Constructor of DynVarManager

Definition at line 233 of file DynVarManager.cs.

Member Function Documentation

bool DynVarManagement.DynVarManager.IsDynamic ( VarPath  path)

Definition at line 128 of file DynVarManager.cs.

void DynVarManagement.DynVarManager.Load ( string  name)

Loads the xml file associated to the source code file

Definition at line 244 of file DynVarManager.cs.

bool DynVarManagement.DynVarManager.LoadOrCreate ( string  fileName)

Attemps to load the specified ".dyn" file. If the file does not exist or an exception is thrown, a new file is created in its place.

Parameters
fileName
Returns

Definition at line 58 of file DynVarManager.cs.

void DynVarManagement.DynVarManager.Save ( )

Definition at line 80 of file DynVarManager.cs.

bool DynVarManagement.DynVarManager.SearchDynVar ( string  ns,
string  classId,
string  varId 
)

Definition at line 259 of file DynVarManager.cs.

bool DynVarManagement.DynVarManager.SearchDynVar ( string  ns,
string  classId,
string  methodId,
string  varId 
)

Definition at line 267 of file DynVarManager.cs.

bool DynVarManagement.DynVarManager.SearchDynVar ( string  ns,
string  classId,
string  methodId,
List< int >  blockList,
string  varId 
)

Definition at line 276 of file DynVarManager.cs.

bool DynVarManagement.DynVarManager.SearchDynVar ( string  ns,
string  classOrInterfaceId,
string  methodId,
bool  isClassId 
)

Definition at line 291 of file DynVarManager.cs.

void DynVarManagement.DynVarManager.SetDynamic ( VarPath  path)

Definition at line 90 of file DynVarManager.cs.

void DynVarManagement.DynVarManager.SetStatic ( VarPath  path)

Definition at line 105 of file DynVarManager.cs.

Member Data Documentation

readonly string DynVarManagement.DynVarManager.ApplicationTag = "application"
static

Definition at line 30 of file DynVarManager.cs.

readonly string DynVarManagement.DynVarManager.ClassTag = "class"
static

Definition at line 32 of file DynVarManager.cs.

readonly string DynVarManagement.DynVarManager.DynReturnAtt = "dynreturn"
static

Definition at line 38 of file DynVarManager.cs.

readonly string DynVarManagement.DynVarManager.DynVarFileExt = ".dyn"
static

File extension

Definition at line 28 of file DynVarManager.cs.

readonly string DynVarManagement.DynVarManager.DynVarTag = "dynvar"
static

Definition at line 35 of file DynVarManager.cs.

readonly string DynVarManagement.DynVarManager.InterfaceTag = "interface"
static

Definition at line 33 of file DynVarManager.cs.

readonly string DynVarManagement.DynVarManager.MethodTag = "method"
static

Definition at line 34 of file DynVarManager.cs.

readonly string DynVarManagement.DynVarManager.NameAtt = "name"
static

Definition at line 37 of file DynVarManager.cs.

readonly string DynVarManagement.DynVarManager.NamespaceTag = "namespace"
static

Definition at line 31 of file DynVarManager.cs.

Property Documentation

string DynVarManagement.DynVarManager.FileName
get

Definition at line 44 of file DynVarManager.cs.

bool DynVarManagement.DynVarManager.Ready
get

Gets true if the xml document is loaded. Otherwise false.

Definition at line 222 of file DynVarManager.cs.


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