C# Class DataDictionary.Interpreter.Refactor.RefactorTree

This visitor is used to handle refactoring of expressions.
Inheritance: DataDictionary.Interpreter.Refactor.BaseRefactorTree
Mostrar archivo Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Private Properties

Property Type Description
ReplaceNonTerminal bool
ResetRemoveIndexes void

Public Methods

Method Description
RefactorTree ( ModelElement reference, ModelElement user ) : System

Constructor

Protected Methods

Method Description
VisitDerefExpression ( DerefExpression derefExpression ) : void
VisitDesignator ( Designator designator ) : void
VisitStructExpression ( StructExpression structExpression ) : void

Visits a struct expression

Private Methods

Method Description
ReplaceNonTerminal ( InterpreterTreeNode treeNode, ModelElement referencedElement ) : bool

Removes the prefix according to the StartRemove and EndRemove values

ResetRemoveIndexes ( ) : void

Resets the StartRemove and EndRemove indexes to their default value (meaning : no removal)

Method Details

RefactorTree() public method

Constructor
public RefactorTree ( ModelElement reference, ModelElement user ) : System
reference ModelElement /// The specific reference to replace. If null, all references to a dictionary element should be /// updated ///
user ModelElement
return System

VisitDerefExpression() protected method

protected VisitDerefExpression ( DerefExpression derefExpression ) : void
derefExpression DerefExpression
return void

VisitDesignator() protected method

protected VisitDesignator ( Designator designator ) : void
designator Designator
return void

VisitStructExpression() protected method

Visits a struct expression
protected VisitStructExpression ( StructExpression structExpression ) : void
structExpression StructExpression
return void