封装字段 meaning in English
encapsulate field
Examples
- How to : refactor code with encapsulate field
如何:用封装字段重构代码 - The code that is generated by this refactoring operation is modeled by the encapsulate field code snippets
此重构操作生成的代码将由“封装字段代码段”来建模。 - To create the new property , the encapsulate field operation changes the access modifier for the field that you want to encapsulate to
为了创建新属性, “封装字段”操作将为要封装为 - For example , if you highlight code that is not a field declaration , you can not select the encapsulate field option
例如,如果突出显示的代码不是字段声明,则无法选择“封装字段”选项。 - The encapsulate field operation is only possible when the cursor is positioned on the same line as the field declaration
仅当将光标与字段声明置于同一行时,才可以执行“封装字段”操作。