Eclipse: how to change attr from public to private with refactoring tools

eg:

 public class Person {

    public final int age;
   }

Is there a way in eclipse to do the following automatic / semi-automatic (using refactoring tools)

1) change the appearance of age from public to private.

2) add getter for age

3) everywhere in changing * .age code to * .get_age () (* = instance of class person)

And I'm not looking to find \ replace solutions ... :)

+3
source share
1 answer

" ". getter, setter, ( , @Louis Wasserman). , . , , , , - , .

+6

All Articles