C# Class DataDictionary.Interpreter.Compiler.Compiler

Compiles all expressions and statements located in the model & tests
Inheritance: Generated.Visitor
Exibir arquivo Open project: ERTMSSolutions/ERTMSFormalSpecs

Private Properties

Property Type Description
RefactorElement void

Public Methods

Method Description
CleanUpModel ( ) : void

Clean up model by removing all useless prefixes

Compile_Synchronous ( bool rebuild, bool silent = false ) : void

Performs a synchronous compilation

Refactor ( ModelElement element, string newName ) : void

Modifies the system according to the new element definition

RefactorAndRelocate ( ModelElement model ) : void

Performs a refactoring of the model then ensure that the namespaces in its inner elements are correct

RefactorIExpressionable ( ModelElement element, IExpressionable user ) : void

Refactors an element which can hold an expression

RefactorTypedElement ( ModelElement element, ITypedElement user ) : void

Refactors an element which has a type

visit ( BaseModelElement obj, bool visitSubNodes ) : void
visit ( Generated obj, bool visitSubNodes ) : void

Private Methods

Method Description
RefactorElement ( ModelElement element, string originalName, string newName ) : void

Refactors a single element

Method Details

CleanUpModel() public method

Clean up model by removing all useless prefixes
public CleanUpModel ( ) : void
return void

Compile_Synchronous() public method

Performs a synchronous compilation
public Compile_Synchronous ( bool rebuild, bool silent = false ) : void
rebuild bool
silent bool
return void

Refactor() public method

Modifies the system according to the new element definition
public Refactor ( ModelElement element, string newName ) : void
element ModelElement The element that has been modified, and for which refactoring is done
newName string The new element name
return void

RefactorAndRelocate() public method

Performs a refactoring of the model then ensure that the namespaces in its inner elements are correct
public RefactorAndRelocate ( ModelElement model ) : void
model ModelElement
return void

RefactorIExpressionable() public static method

Refactors an element which can hold an expression
public static RefactorIExpressionable ( ModelElement element, IExpressionable user ) : void
element ModelElement The element that has been modified, and for which refactoring is done
user IExpressionable The user, which can hold an expression
return void

RefactorTypedElement() public static method

Refactors an element which has a type
public static RefactorTypedElement ( ModelElement element, ITypedElement user ) : void
element ModelElement The element that has been modified
user ITypedElement The user which references this type
return void

visit() public method

public visit ( BaseModelElement obj, bool visitSubNodes ) : void
obj DataDictionary.Generated.BaseModelElement
visitSubNodes bool
return void

visit() public method

public visit ( Generated obj, bool visitSubNodes ) : void
obj Generated
visitSubNodes bool
return void