Author:  Mike Atkinson Software
Release Notes
Download
Contributors

Previous Page

Software::JRefactory - Push Down Field

Next Page

Push down Field

This refactoring moves a field into one or more child classes. This refactoring leaves the permissions alone.

To push down a field, select the field with the right mouse button, select "Field Refactorings", and push down. A list of child classes will be displayed, check each class that should receive a copy of the field.

Warning: this refactoring is not safe. You might need to push some methods down into the children classes. An alternative would be to create an abstract getter and setter functions, and replace direct field accesses with those.

Previous Page

Last Modified: October 7, 2003

Previous Page