Take a look to "encapsulate field".

Regis



=O_O==========================================
Regis Le Brettevillois
CTO
LIBeLIS 
"Transparent Persistence for Java - 
Write Once Persist Anywhere"
http://www.libelis.com
mailto:[EMAIL PROTECTED]
==============================================

On Wed, 27 Feb 2002 06:57:24 -0500
 "Michael Kirby" <[EMAIL PROTECTED]> wrote:
> There doesn't seem to be a refactoring for replacing the use of a variable with 
>getter's and 
> setters.  
> 
> Basically I have a field that is used directly, and initialized in the constructor.  
>It turns out
> that 
> the intitialization can change during the course of running the program so I want to 
> "reinitialize" the variable immediately before each use.
> 
> I'd like to be able to select the variable and say "create getter & setter for", and 
>have it 
> create 2 new methods (both empty), and everywhere the variable is assigned, call the 
> setter, and everywhere its accessed, call the getter.
> 
> Further it should change the variable to private if it isn't already so.
> 
> Comments?
> 
> Mike
> ---
> [EMAIL PROTECTED]
> To obtain my PGP public key, mail "SEND PUB KEY" in the 
> subject to "[EMAIL PROTECTED]"
> 
> 
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to