C# Class Rubberduck.Refactorings.EncapsulateField.EncapsulateFieldRefactoring

Inheritance: IRefactoring
Mostra file Open project: retailcoder/Rubberduck Class Usage Examples

Public Methods

Method Description
EncapsulateFieldRefactoring ( IRefactoringPresenterFactory factory, IActiveCodePaneEditor editor ) : System
Refactor ( ) : void
Refactor ( Rubberduck.Parsing.Symbols.Declaration target ) : void
Refactor ( QualifiedSelection target ) : void

Private Methods

Method Description
AddProperty ( ) : void
GetPropertyText ( ) : string
RemoveExtraComma ( string str, int numParams, int indexRemoved ) : string
RemoveField ( Rubberduck.Parsing.Symbols.Declaration target ) : void
SetFieldToPrivate ( CodeModule module ) : void
UpdateReferences ( ) : void

Method Details

EncapsulateFieldRefactoring() public method

public EncapsulateFieldRefactoring ( IRefactoringPresenterFactory factory, IActiveCodePaneEditor editor ) : System
factory IRefactoringPresenterFactory
editor IActiveCodePaneEditor
return System

Refactor() public method

public Refactor ( ) : void
return void

Refactor() public method

public Refactor ( Rubberduck.Parsing.Symbols.Declaration target ) : void
target Rubberduck.Parsing.Symbols.Declaration
return void

Refactor() public method

public Refactor ( QualifiedSelection target ) : void
target Rubberduck.VBEditor.QualifiedSelection
return void