Encapsulate Fields Refactoring

Use to specify options for the Encapsulate Fields refactoring command in C/C++ projects.

Element Description

List of Fields to Encapsulate

Displays a list of fields in the class. Select the checkbox for each field that you want to encapsulate.

Insert Point

Displays a list of possible insert points (Default, First Method, Last Method, and various After method) options) for inserting a new accessor method. Select one.

Sort by

Displays a list containing the three possible options (Getter/Setter pairs, Getters then Setters, and Method names). Select the option that you want to be used for sorting the fields in the class.

Documentation

Displays possible options to be used for creating documentation.

Fields' Visibility

Select the accessibility modifier that you want the field or fields to have.

Accessor's Visibility

Select the accessibility modifier that you want the accessor (getter and setter) methods to have.

Inline method implementation in class body

Select the checkbox to make the declaration and definition in the header file.

Use Accessors Even When Field Is Accessible

Not yet implemented.


Copyright © 2014, Oracle and/or its affiliates. All rights reserved.